From b1d1dbb80fa1815ec7f235762be0c83f3b7dff60 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 20 Apr 2023 09:42:42 +0200 Subject: [PATCH] #11003 fixed alerts options in metaconsole --- .../godmode/alerts/alert_templates.php | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/pandora_console/godmode/alerts/alert_templates.php b/pandora_console/godmode/alerts/alert_templates.php index 51379a7820..ba3bdeac1d 100644 --- a/pandora_console/godmode/alerts/alert_templates.php +++ b/pandora_console/godmode/alerts/alert_templates.php @@ -122,24 +122,28 @@ $sec = (is_metaconsole() === true) ? 'advanced' : 'galertas'; // case delete_templete action is performed. if (!$delete_template) { // Header. - ui_print_standard_header( - __('Alerts'), - 'images/gm_alerts.png', - false, - '', - true, - [], - [ + if (defined('METACONSOLE')) { + alerts_meta_print_header(); + } else { + ui_print_standard_header( + __('Alerts'), + 'images/gm_alerts.png', + false, + '', + true, + [], [ - 'link' => '', - 'label' => __('Alerts'), - ], - [ - 'link' => '', - 'label' => __('Alert templates'), - ], - ] - ); + [ + 'link' => '', + 'label' => __('Alerts'), + ], + [ + 'link' => '', + 'label' => __('Alert templates'), + ], + ] + ); + } } if ($update_template) {