From 43fd43d0d55078840f751bf74a2c328d29edfa91 Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 15 Nov 2022 10:29:15 +0100 Subject: [PATCH] Updated php versopm notifications to php8 --- pandora_console/include/class/ConsoleSupervisor.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index df0210c64e..37e71144ac 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -1594,17 +1594,21 @@ class ConsoleSupervisor $this->cleanNotifications('NOTIF.PHP.PHANTOMJS'); } - if ($php_version_array[0] < 7) { - $url = 'https://pandorafms.com/manual/en/documentation/07_technical_annexes/14_php_7'; + if ($php_version_array[0] < 8) { + $url = 'https://pandorafms.com/manual/en/documentation/07_technical_annexes/18_php_8'; if ($config['language'] == 'es') { - $url = 'https://pandorafms.com/manual/es/documentation/07_technical_annexes/14_php_7'; + $url = 'https://pandorafms.com/manual/es/documentation/07_technical_annexes/18_php_8'; + } + + if ($config['language'] == 'ja') { + $url = 'https://pandorafms.com/manual/ja/documentation/07_technical_annexes/18_php_8'; } $this->notify( [ 'type' => 'NOTIF.PHP.VERSION', 'title' => __('PHP UPDATE REQUIRED'), - 'message' => __('For a correct operation of PandoraFMS, PHP must be updated to version 7.0 or higher.').'
'.__('Otherwise, functionalities will be lost.').'
'."
  1. ".__('Report download in PDF format').'
  2. '."
  3. ".__('Emails Sending').'
  4. '.__('Metaconsole Collections').'
  5. ...
', + 'message' => __('For a correct operation of PandoraFMS, PHP must be updated to version 8.0 or higher.').'
'.__('Otherwise, functionalities will be lost.').'
'."
  1. ".__('Report download in PDF format').'
  2. '."
  3. ".__('Emails Sending').'
  4. '.__('Metaconsole Collections').'
  5. ...
', 'url' => $url, ] );