Merge pull request #14750 from owncloud/possible-fix-for-OC_Version

proper filename for "require version.php"
This commit is contained in:
Thomas Müller 2015-03-09 09:55:21 +01:00
commit fccede8f50
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class OC_Util {
private static function loadVersion() {
$timestamp = filemtime(OC::$SERVERROOT . '/version.php');
if (!\OC::$server->getSession()->exists('OC_Version') or OC::$server->getSession()->get('OC_Version_Timestamp') != $timestamp) {
require 'version.php';
require OC::$SERVERROOT . '/version.php';
$session = \OC::$server->getSession();
/** @var $timestamp int */
$session->set('OC_Version_Timestamp', $timestamp);