From e19b33a842160444ca3d29aac497176f136c0f64 Mon Sep 17 00:00:00 2001 From: Boris Gulay Date: Sun, 11 Mar 2018 01:09:12 +0300 Subject: [PATCH] Return error message in a modern way. --- ident_switch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ident_switch.php b/ident_switch.php index 3b6879d..a9c622c 100644 --- a/ident_switch.php +++ b/ident_switch.php @@ -236,8 +236,8 @@ class ident_switch extends rcube_plugin if ($data['err']) { $this->add_texts('localization'); - $rc->output->show_message('ident_switch.err.' . $data['err'], 'error'); $args['abort'] = true; + $args['message'] = 'ident_switch.err.' . $data['err']; return $args; } @@ -263,8 +263,8 @@ class ident_switch extends rcube_plugin if ($data['err']) { $this->add_texts('localization'); - $rc->output->show_message('ident_switch.err.' . $data['err'], 'error'); $args['abort'] = true; + $args['message'] = 'ident_switch.err.' . $data['err']; } // Save data for _after (cannot pass with $args)