From b63154b7ed983d08c5885074958f36b4b442e3a2 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Sun, 15 May 2016 18:45:23 +0000 Subject: [PATCH] better version-info of MMDVMHost since MMDVMHost-build 20160515. --- include/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 4e6d75b..17bfaa4 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4,7 +4,11 @@ function getMMDVMHostVersion() { // returns creation-time of MMDVMHost as version-number $filename = MMDVMHOSTPATH . "MMDVMHost"; exec($filename." -v 2>&1", $output); - return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + if (substr($output[0],18,8) == ".ini fil") { + return getMMDVMHostFileVersion(); + } else { + return substr($output[0],18,8)." (compiled ".getMMDVMHostFileVersion().")"; + } } function getMMDVMHostFileVersion() {