From 583d5b9a9838c411473e0e41c721710097914436 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Mar 2016 13:26:09 +0300 Subject: [PATCH] get_version: add missing substr --- include/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/version.php b/include/version.php index 391af88c..3169ff22 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); -- 2.39.5