diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-22 12:55:09 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-22 12:55:09 +0300 |
commit | e555d0e6abc080594720f333b832ff61be0ec936 (patch) | |
tree | 135229c130ab962a30d24153c7704c15ab466720 | |
parent | 0905415894bebdebcfdea5dc2e99f1c78bc02722 (diff) |
Fix legend for table SQL page
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
-rw-r--r-- | libraries/sql_query_form.lib.php | 11 |
1 files 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 = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] - . PMA_URL_getCommon(array('db' => $db)) . '"'; - $tmp_db_link .= '>' - . htmlspecialchars($db) . '</a>'; + $tmp_tbl_link = '<a href="' . $GLOBALS['cfg']['DefaultTabTable'] + . PMA_URL_getCommon(array('db' => $db, 'table' => $table)) . '"'; + $tmp_tbl_link .= '>' . htmlspecialchars($db) + . '.' . htmlspecialchars($table) . '</a>'; // 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' |