]> git.wh0rd.org Git - tt-rss.git/commitdiff
Fix version in preferences footer
authorcraywolf <craywolf@example.com>
Wed, 26 Jun 2013 13:20:03 +0000 (09:20 -0400)
committercraywolf <craywolf@example.com>
Wed, 26 Jun 2013 13:20:03 +0000 (09:20 -0400)
include/version.php

index c58dc3a19bb6dde0b9cbada68b8f3c9d9d042c88..460c189d6e24ec9f9dce0bdf73d709f068b262c8 100644 (file)
@@ -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 {