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,9 +9,13 @@ function getMMDVMHostVersion() {
return getMMDVMHostFileVersion(); return getMMDVMHostFileVersion();
} else { } else {
showLapTime("getMMDVMHostVersion"); showLapTime("getMMDVMHostVersion");
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(). ")"; return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ")";
} }
} }
}
function getMMDVMHostFileVersion() { function getMMDVMHostFileVersion() {
// returns creation-time of MMDVMHost as version-number // returns creation-time of MMDVMHost as version-number