Save some substrs

This commit is contained in:
phl0 2017-04-12 16:39:14 +02:00
parent 8d61ff736e
commit 739b5725f2
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -823,8 +823,8 @@ function decodeAlias($logLine) {
function getGitVersion(){
if (file_exists(".git")) {
exec("git rev-parse HEAD", $output);
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.substr($output[0],0,7).'">'.substr($output[0],0,7).'</a>';
exec("git rev-parse --short HEAD", $output);
return 'GitID #<a href="https://github.com/dg9vh/MMDVMHost-Dashboard/commit/'.$output[0].' target="_blank">'.$output[0].'</a>';
} else {
return 'GitID unknown';
}