Skip to content

Commit

Permalink
Show an error message rather than just "unknown version"
Browse files Browse the repository at this point in the history
refs #9247
  • Loading branch information
Al2Klimov committed Jun 5, 2015
1 parent cbc7310 commit 67322e0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions application/views/scripts/about/index.phtml
Expand Up @@ -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>

0 comments on commit 67322e0

Please sign in to comment.