Removed unnecessary check 'installed' system value' call.
OC_Utils::checkServer makes an unnecessary call to $config->getSystemValue('installed', false), which replicates the call made immediately before it during the call to needUpgrade.
This commit is contained in:
parent
8082105a19
commit
c519447522
|
@ -612,7 +612,7 @@ class OC_Util {
|
||||||
$errors = array();
|
$errors = array();
|
||||||
$CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data');
|
$CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data');
|
||||||
|
|
||||||
if (!self::needUpgrade($config) && $config->getSystemValue('installed', false)) {
|
if (!self::needUpgrade($config)) {
|
||||||
// this check needs to be done every time
|
// this check needs to be done every time
|
||||||
$errors = self::checkDataDirectoryValidity($CONFIG_DATADIRECTORY);
|
$errors = self::checkDataDirectoryValidity($CONFIG_DATADIRECTORY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue