From: craywolf Date: Wed, 26 Jun 2013 13:20:03 +0000 (-0400) Subject: Fix version in preferences footer X-Git-Tag: 1.9~82^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3cda9e2a404ffc71789c5fbd2de389a1084e8b85;p=tt-rss.git Fix version in preferences footer --- diff --git a/include/version.php b/include/version.php index c58dc3a1..460c189d 100644 --- a/include/version.php +++ b/include/version.php @@ -5,9 +5,9 @@ date_default_timezone_set('UTC'); $root_dir = dirname(dirname(__FILE__)); - if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/ORIG_HEAD")) { + if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/refs/heads/master")) { - $suffix = substr(trim(file_get_contents("$root_dir/.git/ORIG_HEAD")), 0, 7); + $suffix = substr(trim(file_get_contents("$root_dir/.git/refs/heads/master")), 0, 7); return VERSION_STATIC . ".$suffix"; } else {