diff --git a/app/system/app_languages.php b/app/system/app_languages.php index e576287a32..08271e3487 100644 --- a/app/system/app_languages.php +++ b/app/system/app_languages.php @@ -100,15 +100,15 @@ $text['label-git_info']['sv-se'] = ""; $text['label-git_info']['uk'] = ""; $text['label-git_info']['de-at'] = ""; -$text['label-switch_version']['en-us'] = "Switch Version"; -$text['label-switch_version']['es-cl'] = ""; -$text['label-switch_version']['pt-pt'] = ""; -$text['label-switch_version']['fr-fr'] = ""; -$text['label-switch_version']['pt-br'] = ""; -$text['label-switch_version']['pl'] = ""; -$text['label-switch_version']['sv-se'] = ""; -$text['label-switch_version']['uk'] = ""; -$text['label-switch_version']['de-at'] = ""; +$text['label-switch']['en-us'] = "Switch"; +$text['label-switch']['es-cl'] = ""; +$text['label-switch']['pt-pt'] = ""; +$text['label-switch']['fr-fr'] = ""; +$text['label-switch']['pt-br'] = ""; +$text['label-switch']['pl'] = ""; +$text['label-switch']['sv-se'] = ""; +$text['label-switch']['uk'] = ""; +$text['label-switch']['de-at'] = ""; $text['label-git_branch']['en-us'] = "Branch:"; $text['label-git_branch']['es-cl'] = ""; diff --git a/app/system/system.php b/app/system/system.php index 9129f39707..f9e63ce403 100644 --- a/app/system/system.php +++ b/app/system/system.php @@ -108,15 +108,25 @@ $document['title'] = $text['title-sys-status']; $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { $switch_version = event_socket_request($fp, 'api version'); - preg_match("/FreeSWITCH Version (\d+\.\d+\.\d+(?:\.\d+)?).*\(\s*(\d+\w+)\s*\)/", $switch_version, $matches); + preg_match("/FreeSWITCH Version (\d+\.\d+\.\d+(?:\.\d+)?).*\(.*?(\d+\w+)\s*\)/", $switch_version, $matches); $switch_version = $matches[1]; $switch_bits = $matches[2]; echo "