mirror of
https://github.com/friendica/friendica
synced 2024-11-19 10:23:41 +00:00
Fixing Basepath
This commit is contained in:
parent
d78598b64e
commit
7d88b800b8
1 changed files with 3 additions and 2 deletions
|
@ -245,7 +245,7 @@ class Update
|
|||
$updated = true;
|
||||
};
|
||||
|
||||
if (self::updateConfigEntry($configCache, $configFileSaver,'system', 'basepath', BasePath::create(dirname(__DIR__)))) {
|
||||
if (self::updateConfigEntry($configCache, $configFileSaver,'system', 'basepath', BasePath::create(dirname(__DIR__) . '/../'))) {
|
||||
$updated = true;
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ class Update
|
|||
$savedConfig = DBA::selectFirst('config', ['v'], ['cat' => $cat, 'k' => $key]);
|
||||
|
||||
if (!DBA::isResult($savedConfig)) {
|
||||
return false;
|
||||
$savedConfig = null;
|
||||
}
|
||||
|
||||
if ($fileConfig !== $savedConfig['v']) {
|
||||
|
@ -297,6 +297,7 @@ class Update
|
|||
$configFileSaver->addConfigValue($cat, $key, $default);
|
||||
} else {
|
||||
Logger::info('No Difference in config found', ['cat' => $cat, 'key' => $key, 'value' => $fileConfig, 'saved' => $savedConfig['v']]);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue