From: Julius Härtl Date: Thu, 15 Jun 2017 10:46:51 +0000 (+0200) Subject: Do not open version file again X-Git-Tag: v12.0.1RC1~34^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c3b27da5c3498498f30290a4281db815b185aca;p=nextcloud-server.git Do not open version file again Signed-off-by: Julius Härtl --- diff --git a/lib/private/Server.php b/lib/private/Server.php index 081bee3d2ba..159fab20be4 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -443,7 +443,7 @@ class Server extends ServerContainer implements IServerContainer { if ($config->getSystemValue('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { $v = \OC_App::getAppVersions(); - $v['core'] = md5(file_get_contents(\OC::$SERVERROOT . '/version.php')); + $v['core'] = implode(',', \OC_Util::getVersion()); $version = implode(',', $v); $instanceId = \OC_Util::getInstanceId(); $path = \OC::$SERVERROOT;