get_version: add missing substr
This commit is contained in:
parent
b6d504b901
commit
583d5b9a98
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue