From d550143ba048180e5c529a5ee343da5e7bf8cc62 Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Mon, 9 Mar 2015 08:02:09 +0100
Subject: [PATCH] proper filename for "require version.php"

---
 lib/private/util.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index 4c60af88189..c6ad7cb5768 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -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);
-- 
GitLab