mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
bugfix version.php display
This commit is contained in:
parent
1e458803c1
commit
561b8c428e
@ -5,8 +5,8 @@ $version_revision="1.12";
|
|||||||
$gitinfo = file_get_contents("../gitinfo.json");
|
$gitinfo = file_get_contents("../gitinfo.json");
|
||||||
if (!empty($gitinfo)) {
|
if (!empty($gitinfo)) {
|
||||||
$gitinfo = json_decode($gitinfo);
|
$gitinfo = json_decode($gitinfo);
|
||||||
|
|
||||||
if ($gitinfo->branch != 'master') {
|
if ($gitinfo->branch != 'master' && !empty($gitinfo->branch)) {
|
||||||
$version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")";
|
$version_revision .= " (".substr($gitinfo->hash,0,8)." - ".$gitinfo->branch.")";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user