]> git.wh0rd.org - tt-rss.git/blobdiff - include/version.php
add placeholder update checker using git changesets
[tt-rss.git] / include / version.php
index a7ca8a32b43faef7433b2afec41bad43401f29f6..34c11e6e7738a8a0495d68c3b22b1cb773a9593d 100644 (file)
@@ -8,6 +8,10 @@
                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");
+
+                       define("GIT_VERSION_HEAD", $suffix);
+                       define("GIT_VERSION_TIMESTAMP", $timestamp);
 
                        return VERSION_STATIC . ".$suffix";
                } else {