Show an error message rather than just "unknown version"

refs #9247
This commit is contained in:
Alexander A. Klimov 2015-06-05 11:56:15 +02:00
parent cbc731034a
commit 67322e0b36
1 changed files with 8 additions and 4 deletions

View File

@ -13,9 +13,13 @@
} }
} }
} }
echo (
0 === count($versionInfo)
? '<p class="fileNotReadable">' . $this->translate(
'Can\'t determine Icinga Web 2\'s version'
)
: '<p>' . nl2br(implode("\n", $versionInfo), false)
) . '</p>';
?> ?>
<p><?= 0 === count($versionInfo)
? $this->translate('unknown version')
: nl2br(implode("\n", $versionInfo), false)
?></p>
</div> </div>