#8730 Fixed console server version
This commit is contained in:
parent
3dc57f8a8c
commit
1b3994d32c
|
@ -224,7 +224,7 @@ if (is_ajax() !== true) {
|
||||||
if ($server_version !== false
|
if ($server_version !== false
|
||||||
&& preg_match('/NG\.(\d\.*\d*?) /', $server_version, $matches) > 0
|
&& preg_match('/NG\.(\d\.*\d*?) /', $server_version, $matches) > 0
|
||||||
) {
|
) {
|
||||||
if ((float) $matches[1] !== (float) $current_package) {
|
if ((float) $matches[1] !== floor((float) $current_package)) {
|
||||||
ui_print_warning_message(
|
ui_print_warning_message(
|
||||||
__(
|
__(
|
||||||
'Master server version %s does not match console version %s.',
|
'Master server version %s does not match console version %s.',
|
||||||
|
|
|
@ -2490,7 +2490,7 @@ class ConsoleSupervisor
|
||||||
foreach ($server_version_list as $server) {
|
foreach ($server_version_list as $server) {
|
||||||
if (strpos(
|
if (strpos(
|
||||||
$server['version'],
|
$server['version'],
|
||||||
floor($config['current_package'])
|
(string) floor($config['current_package'])
|
||||||
) === false
|
) === false
|
||||||
) {
|
) {
|
||||||
$missed++;
|
$missed++;
|
||||||
|
|
Loading…
Reference in New Issue