]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not open version file again
authorJulius Härtl <jus@bitgrid.net>
Thu, 15 Jun 2017 10:46:51 +0000 (12:46 +0200)
committerJulius Härtl <jus@bitgrid.net>
Sun, 2 Jul 2017 12:03:35 +0000 (14:03 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
lib/private/Server.php

index 081bee3d2ba699eb7b833de51c118ac8d34f08ba..159fab20be479c3304a622e5ec81d56252ba278d 100644 (file)
@@ -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;