diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 9a41e763b..d9609f778 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -550,21 +550,25 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
if (strstr(strtolower($formatted_sql), 'select')) { // please show me help to the error on select
echo PMA_showMySQLDocu('SQL-Syntax', 'SELECT');
}
- if ($is_modify_link && strlen($db)) {
+ if ($is_modify_link) {
+ $_url_params = array(
+ 'sql_query' => $the_query,
+ 'show_query' => 1,
+ );
if (strlen($table)) {
- $doedit_goto = '';
+ $_url_params['db'] = $db;
+ $_url_params['table'] = $table;
+ $doedit_goto = '';
+ } elseif (strlen($db)) {
+ $_url_params['db'] = $db;
+ $doedit_goto = '';
} else {
- $doedit_goto = '';
- }
- if ($GLOBALS['cfg']['PropertiesIconic']) {
- echo $doedit_goto
- . ''
- . '';
- } else {
- echo ' ['
- . $doedit_goto . $GLOBALS['strEdit'] . ''
- . ']' . "\n";
+ $doedit_goto = '';
}
+
+ echo $doedit_goto
+ . PMA_getIcon('b_edit.png', $GLOBALS['strEdit'])
+ . '';
} // end if
echo '
' . "\n"
@@ -600,14 +604,18 @@ function PMA_mysqlDie($error_message = '', $the_query = '',
. $error_message . "\n"
. '
' . "\n";
echo '';
- echo '