]> git.wh0rd.org - tt-rss.git/blobdiff - include/version.php
update static version
[tt-rss.git] / include / version.php
index d37136f40229697b697035c20deb59c59a51acd4..dfef9da57a656329979ac3310f40e2e24555e589 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-       define('VERSION_STATIC', '1.11');
+       define('VERSION_STATIC', '16.1');
 
        function get_version() {
                date_default_timezone_set('UTC');
@@ -8,8 +8,12 @@
                if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/refs/heads/master")) {
 
                        $suffix = substr(trim(file_get_contents("$root_dir/.git/refs/heads/master")), 0, 7);
+                       $timestamp = filemtime("$root_dir/.git/refs/heads/master");
 
-                       return VERSION_STATIC . ".$suffix";
+                       define("GIT_VERSION_HEAD", $suffix);
+                       define("GIT_VERSION_TIMESTAMP", $timestamp);
+
+                       return VERSION_STATIC . " ($suffix)";
                } else {
                        return VERSION_STATIC;
                }