Skip to content
Snippets Groups Projects
Commit fccede8f authored by Thomas Müller's avatar Thomas Müller
Browse files

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

proper filename for "require version.php"
parents 348fe105 d550143b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment