]> git.wh0rd.org - tt-rss.git/blobdiff - include/version.php
1.15.3 to fix tag/version mismatch
[tt-rss.git] / include / version.php
index 0e583f9ecbf3f025d20f8c5d7789e5d032945925..a7ca8a32b43faef7433b2afec41bad43401f29f6 100644 (file)
@@ -1,13 +1,13 @@
 <?php
-       define('VERSION_STATIC', '1.7.8');
+       define('VERSION_STATIC', '1.15.3');
 
        function get_version() {
                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 {