corrected version-display if older MMDVMHost-version is in use
This commit is contained in:
parent
44446bc642
commit
78d44de12d
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ function getMMDVMHostVersion() {
|
||||||
// returns creation-time of MMDVMHost as version-number
|
// returns creation-time of MMDVMHost as version-number
|
||||||
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
$filename = MMDVMHOSTPATH . "MMDVMHost";
|
||||||
exec($filename." -v 2>&1", $output);
|
exec($filename." -v 2>&1", $output);
|
||||||
if (substr($output[0],18,8) == ".ini fil") {
|
if (!startsWith(substr($output[0],18,8),"20")) {
|
||||||
return getMMDVMHostFileVersion();
|
return getMMDVMHostFileVersion();
|
||||||
} else {
|
} else {
|
||||||
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
|
return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")";
|
||||||
|
|
Loading…
Reference in a new issue