]>
git.wh0rd.org - tt-rss.git/blob - include/version.php
2 define('VERSION_STATIC', '1.7.8');
4 function get_version() {
5 $root_dir = dirname(dirname(__FILE__
));
7 if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) {
9 $suffix = date("Ymd", filemtime("$root_dir/.git/ORIG_HEAD"));
11 return VERSION_STATIC
. ".$suffix";
13 return VERSION_STATIC
;
17 define('VERSION', get_version());