diff options
author | Andrew Dolgov <[email protected]> | 2016-03-28 13:26:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-03-28 13:26:09 +0300 |
commit | 583d5b9a9838c411473e0e41c721710097914436 (patch) | |
tree | d0db2cd94ccfc8eb3b047f992c59ddc4024656a7 /include | |
parent | b6d504b9013747dc3d12724a1978041e3702628c (diff) |
get_version: add missing substr
Diffstat (limited to 'include')
-rw-r--r-- | include/version.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/version.php b/include/version.php index 391af88cb..3169ff222 100644 --- a/include/version.php +++ b/include/version.php @@ -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); |