From 349fb661516ed9c713c8bd604b63624d2a7de5bf Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Apr 2017 15:40:43 +0200 Subject: [PATCH 1/2] Link to github for firmware version --- include/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions.php b/include/functions.php index 4c1c9d9..6856f24 100644 --- a/include/functions.php +++ b/include/functions.php @@ -32,6 +32,7 @@ function getFirmwareVersion() { $firmware = "n/a"; if (count($logLines) >= 2) { $firmware = substr($logLines[count($logLines)-2], strpos($logLines[count($logLines)-2], "description")+13, strlen($logLines[count($logLines)-2])-strpos($logLines[count($logLines)-2], "description")+13); + $firmware = preg_replace('/GitID #([0-9A-Fa-f]{7})/', 'GitID #$1', $firmware); } if ($firmware != "n/a") { $fp = fopen('/tmp/MMDVMFirmware.txt', 'w'); From 365b92070b139bc6c26ea9c4e424ba4ed7f7cd18 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Apr 2017 16:02:04 +0200 Subject: [PATCH 2/2] Make new tag for github link of MMDVMHost --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 6856f24..5c3e724 100644 --- a/include/functions.php +++ b/include/functions.php @@ -10,7 +10,7 @@ function getMMDVMHostVersion() { } else { showLapTime("getMMDVMHostVersion"); if (strlen($output[0]) > 26) { - return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; + return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ", GitID #" . substr($output[0],32,7) . ")"; } else { return substr($output[0],18,8)." ("._("compiled")." ".getMMDVMHostFileVersion(). ")"; }