get_version: add missing substr

This commit is contained in:
Andrew Dolgov 2016-03-28 13:26:09 +03:00
parent b6d504b901
commit 583d5b9a98
1 changed files with 1 additions and 1 deletions

View 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);