From aac011999f6de7b856b1850c3216914513c25345 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Thu, 21 Nov 2013 17:14:10 +0100 Subject: [PATCH] - Datum statt Revision-Hash anzeigen --- public_html/deployment/inc_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/deployment/inc_functions.php b/public_html/deployment/inc_functions.php index 8feadf67..d257bc96 100644 --- a/public_html/deployment/inc_functions.php +++ b/public_html/deployment/inc_functions.php @@ -100,8 +100,8 @@ function getTopArea() { $sJsonfile = $_SERVER["DOCUMENT_ROOT"] . "ci-webgui.json"; if (file_exists($sJsonfile)) { $aJson = json_decode(file_get_contents($sJsonfile), true); - if (array_key_exists("revision", $aJson)) - $sMyRev = $aJson["revision"]; + if (array_key_exists("date", $aJson)) + $sMyRev = $aJson["date"]; } $sPhase = '(unknown)'; $aPhases = array( @@ -116,7 +116,7 @@ function getTopArea() { $sWikiBaseUrl = 'https://secure.iml.unibe.ch/wiki/doku.php'; $sReturn = ' <div class="navbar"> - <span class="version ' . $sPhase . '">' . $sPhase . ' . ' . $sMyRev . '</span> + <span class="version ' . $sPhase . '">' . $sPhase . ' :: ' . $sMyRev . '</span> <div class="navbar-inner"> <span class="brand">IML Deployment GUI</span> <ul class="nav"> -- GitLab