]> git.wh0rd.org - tt-rss.git/blobdiff - include/version.php
bump version_static
[tt-rss.git] / include / version.php
index bc8e8695bbbf0885e53ef8cc3a9fa5916fba25c1..751055b76fd13da1698e9f0193fd4bf32681f060 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-       define('VERSION_STATIC', '17.1');
+       define('VERSION_STATIC', '18.8');
 
        function get_version() {
                date_default_timezone_set('UTC');
@@ -14,6 +14,8 @@
                                if (preg_match("/^ref: (.*)/", $head, $matches)) {
                                        $ref = $matches[1];
 
+                                       if (!file_exists("$root_dir/.git/$ref"))
+                                               return VERSION_STATIC;
                                        $suffix = substr(trim(file_get_contents("$root_dir/.git/$ref")), 0, 7);
                                        $timestamp = filemtime("$root_dir/.git/$ref");
 
@@ -39,4 +41,3 @@
        }
 
        define('VERSION', get_version());
-?>