From d983e9c2c20a0e4663b83ec56e6a09bed235aded Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Mon, 17 Jul 2017 10:10:49 +0200 Subject: [PATCH] deployment bug#1511 json file was moved 1 level up --- public_html/deployment/inc_functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/deployment/inc_functions.php b/public_html/deployment/inc_functions.php index f79a1b93..3dea8abc 100644 --- a/public_html/deployment/inc_functions.php +++ b/public_html/deployment/inc_functions.php @@ -189,7 +189,8 @@ function getTopArea() { $sMyPhase = "[phase]"; $sMyRev = " [no rev] "; - $sJsonfile = $_SERVER["DOCUMENT_ROOT"] . "ci-webgui.json"; + // bug#1511 json file was moved 1 level up + $sJsonfile = __DIR__ . "/../../ci-webgui.json"; if (file_exists($sJsonfile)) { $aJson = json_decode(file_get_contents($sJsonfile), true); if (array_key_exists("date", $aJson)) -- GitLab