Merge pull request #111 from m1geo/patch-1

Added GitID from MMDVMHost to Dashboard
This commit is contained in:
Kim - DG9VH 2017-03-13 21:48:54 +01:00 committed by GitHub
commit 8957a1c657

View file

@ -9,7 +9,11 @@ function getMMDVMHostVersion() {
return getMMDVMHostFileVersion(); return getMMDVMHostFileVersion();
} else { } else {
showLapTime("getMMDVMHostVersion"); showLapTime("getMMDVMHostVersion");
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; if (strlen($output[0]) > 26) {
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ", GitID #<a href=\"https://github.com/g4klx/MMDVMHost/commit/" . substr($output[0],32,7) . "\">" . substr($output[0],32,7) . "</a>)";
} else {
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ")";
}
} }
} }