1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 07:21:30 +00:00

add placeholder update checker using git changesets

This commit is contained in:
Andrew Dolgov
2015-02-03 14:39:15 +03:00
parent 47cdc58c60
commit efcc5d365d
4 changed files with 47 additions and 0 deletions

View 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 {