summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/login_form.php3
-rw-r--r--include/version.php4
2 files changed, 2 insertions, 5 deletions
diff --git a/include/login_form.php b/include/login_form.php
index 891e25e13..3d2c957a7 100644
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -246,9 +246,6 @@ function bwLimitChange(elem) {
<div class='footer'>
<a href="http://tt-rss.org/">Tiny Tiny RSS</a>
- <?php if (!defined('HIDE_VERSION')) { ?>
- v<?php echo VERSION ?>
- <?php } ?>
&copy; 2005&ndash;<?php echo date('Y') ?> <a href="http://fakecake.org/">Andrew Dolgov</a>
</div>
diff --git a/include/version.php b/include/version.php
index c58dc3a19..460c189d6 100644
--- a/include/version.php
+++ b/include/version.php
@@ -5,9 +5,9 @@
date_default_timezone_set('UTC');
$root_dir = dirname(dirname(__FILE__));
- if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) {
+ if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/refs/heads/master")) {
- $suffix = substr(trim(file_get_contents("$root_dir/.git/ORIG_HEAD")), 0, 7);
+ $suffix = substr(trim(file_get_contents("$root_dir/.git/refs/heads/master")), 0, 7);
return VERSION_STATIC . ".$suffix";
} else {