]> git.wh0rd.org Git - tt-rss.git/commitdiff
get_version: add missing substr
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Mon, 28 Mar 2016 10:26:09 +0000 (13:26 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Mon, 28 Mar 2016 10:26:09 +0000 (13:26 +0300)
include/version.php

index 391af88cb1de3be2ce2cb8aa77043497767be176..3169ff2221e5bafbedbf284694f6c3d9370496f1 100644 (file)
@@ -23,7 +23,7 @@
                                        return VERSION_STATIC . " ($suffix)";
 
                                } else {
-                                       $suffix = trim($head, 0, 7);
+                                       $suffix = substr(trim($head), 0, 7);
                                        $timestamp = filemtime("$root_dir/.git/HEAD");
 
                                        define("GIT_VERSION_HEAD", $suffix);