proper filename for "require version.php"

This commit is contained in:
Morris Jobke 2015-03-09 08:02:09 +01:00
parent 174f8cef64
commit d550143ba0

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);