From c217eaffc27f4d3a81e52f2f13eff98ff6dbd9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 16 Dec 2015 09:27:40 +0100 Subject: [PATCH] Use default messages, no need to duplicate them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- tbl_operations.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tbl_operations.php b/tbl_operations.php index 6cf91707a7..305fd2e53e 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -220,10 +220,8 @@ if (isset($result) && empty($message_to_show)) { $_type = 'success'; if (empty($_message)) { $_message = $result - ? PMA\libraries\Message::success( - __('Your SQL query has been executed successfully.') - ) - : PMA\libraries\Message::error(__('Error')); + ? PMA\libraries\Message::success() + : PMA\libraries\Message::error(); // $result should exist, regardless of $_message $_type = $result ? 'success' : 'error';