From e555d0e6abc080594720f333b832ff61be0ec936 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 22 Jul 2015 15:25:09 +0530 Subject: Fix legend for table SQL page Signed-off-by: Madhura Jayaratne --- libraries/sql_query_form.lib.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php index 99dad8d89c..8a48361b71 100644 --- a/libraries/sql_query_form.lib.php +++ b/libraries/sql_query_form.lib.php @@ -175,6 +175,7 @@ function PMA_getHtmlForSqlQueryFormInsert( } } else { $db = $GLOBALS['db']; + $table = $GLOBALS['table']; // Get the list and number of fields // we do a try_query here, because we could be in the query window, // trying to synchronize and the table has not yet been created @@ -182,13 +183,13 @@ function PMA_getHtmlForSqlQueryFormInsert( $db, $GLOBALS['table'], null, true ); - $tmp_db_link = ''; + $tmp_tbl_link = ''; // else use // $tmp_db_link = htmlspecialchars($db); - $legend = sprintf(__('Run SQL query/queries on database %s'), $tmp_db_link); + $legend = sprintf(__('Run SQL query/queries on table %s'), $tmp_tbl_link); if (empty($query)) { $query = PMA_Util::expandUserString( $GLOBALS['cfg']['DefaultQueryTable'], 'backquote' -- cgit v1.2.3