diff --git a/include/functions.php b/include/functions.php index 22e2e63..a98088d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -9,7 +9,11 @@ function getMMDVMHostVersion() { return getMMDVMHostFileVersion(); } else { showLapTime("getMMDVMHostVersion"); - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + if (strlen($output[0]) > 26) { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; + } else { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion(). ")"; + } } }