diff options
author | Andrew Dolgov <[email protected]> | 2020-01-14 20:50:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-01-14 20:50:40 +0300 |
commit | 5fc499e19ef25f9d75994a91aa8589544e5c8421 (patch) | |
tree | 48fad5369339a5edd78d3dd6873730142f6e7046 /prefs.php | |
parent | f47998f569dd90a803d357bcc353219dc84c7299 (diff) |
get_version: don't rely on exec() exit code to determine whether output is valid
Diffstat (limited to 'prefs.php')
-rw-r--r-- | prefs.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -157,9 +157,10 @@ "hook_prefs_tabs", false); ?> </div> - <div id="footer" dojoType="dijit.layout.ContentPane" region="bottom"> - <a class="text-muted" target="_blank" href="http://tt-rss.org/"> - Tiny Tiny RSS</a> v<?php echo get_version() ?> + <?php $version = get_version($git_commit, $git_timestamp, $last_error); ?> + <div id="footer" dojoType="dijit.layout.ContentPane" region="bottom"> + <a class="text-muted" target="_blank" href="http://tt-rss.org/">Tiny Tiny RSS</a> + <span title="<?php echo htmlspecialchars($last_error) ?>">v<?php echo $version ?></span> © 2005-<?php echo date('Y') ?> <a class="text-muted" target="_blank" href="http://fakecake.org/">Andrew Dolgov</a> |