summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-14 20:50:40 +0300
committerAndrew Dolgov <[email protected]>2020-01-14 20:50:40 +0300
commit5fc499e19ef25f9d75994a91aa8589544e5c8421 (patch)
tree48fad5369339a5edd78d3dd6873730142f6e7046 /prefs.php
parentf47998f569dd90a803d357bcc353219dc84c7299 (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.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/prefs.php b/prefs.php
index 7d6962004..22921b23f 100644
--- a/prefs.php
+++ b/prefs.php
@@ -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>
&copy; 2005-<?php echo date('Y') ?>
<a class="text-muted" target="_blank"
href="http://fakecake.org/">Andrew Dolgov</a>