summaryrefslogtreecommitdiff
path: root/include/version.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-03-28 13:26:09 +0300
committerAndrew Dolgov <[email protected]>2016-03-28 13:26:09 +0300
commit583d5b9a9838c411473e0e41c721710097914436 (patch)
treed0db2cd94ccfc8eb3b047f992c59ddc4024656a7 /include/version.php
parentb6d504b9013747dc3d12724a1978041e3702628c (diff)
get_version: add missing substr
Diffstat (limited to 'include/version.php')
-rw-r--r--include/version.php2
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);