diff options
-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' |