Permalink
Browse files

No additional spaces in "(query took ...)" message

  • Loading branch information...
1 parent 4521b28 commit 75393d9e20d798fd570655544b72a51a1b407173 Jo Michael committed Apr 8, 2012
Showing with 5 additions and 7 deletions.
  1. +4 −4 libraries/display_tbl.lib.php
  2. +1 −3 sql.php
@@ -2385,13 +2385,13 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
$message->addMessage(', ', '');
}
- $messagge_qt = PMA_Message::notice(__('Query took %01.4f sec'));
+ $messagge_qt = PMA_Message::notice(__('Query took %01.4f sec') . ')');
$messagge_qt->addParam($GLOBALS['querytime']);
$message->addMessage($messagge_qt, '');
- $message->addMessage(')', '');
-
- $message->addMessage(isset($sorted_column_message) ? $sorted_column_message : '', '');
+ if (isset($sorted_column_message)) {
+ $message->addMessage($sorted_column_message : '', '');
+ }
PMA_showMessage($message, $sql_query, 'success');
View
@@ -763,11 +763,9 @@
}
if (isset($GLOBALS['querytime'])) {
- $_querytime = PMA_Message::notice(__('Query took %01.4f sec'));
+ $_querytime = PMA_Message::notice('(' . __('Query took %01.4f sec') . ')');
$_querytime->addParam($GLOBALS['querytime']);
- $message->addMessage('(');
$message->addMessage($_querytime);
- $message->addMessage(')');
}
if ($GLOBALS['is_ajax_request'] == true) {

0 comments on commit 75393d9

Please sign in to comment.