From f191561599fe3ee1b7c3cce6375123fc108a9eaf Mon Sep 17 00:00:00 2001 From: sabas <sabas88@gmail.com> Date: Tue, 3 Sep 2013 15:56:26 +0200 Subject: [PATCH] Update client.inc.php incorrect behaviour in offline mode With ./, if called from knowledge base, it searches incorrectly offline.php in that folder. --- client.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.inc.php b/client.inc.php index 262b8680c..74ba71863 100644 --- a/client.inc.php +++ b/client.inc.php @@ -31,7 +31,7 @@ define('ASSETS_PATH',ROOT_PATH.'assets/default/'); //Check the status of the HelpDesk. if (!in_array(strtolower(basename($_SERVER['SCRIPT_NAME'])), array('logo.php',)) && !(is_object($ost) && $ost->isSystemOnline())) { - include('./offline.php'); + include('offline.php'); exit; } -- GitLab