From b05c8643960e400a5fbb718a3ca792a283439273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 12 Oct 2005 10:54:33 +0000 Subject: [PATCH] Make drop and empty tabs lead to structure instead of SQL. --- ChangeLog | 2 ++ tbl_properties_links.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index c76907220..132bd63f2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,8 @@ $Source$ 2005-10-12 Michal Čihař * libraries/get_foreign.lib.php: Fix paging. + * tbl_properties_links.php: Make drop and empty tabs lead to structure + instead of SQL. 2005-10-11 Marc Delisle * libraries/grab_globals.lib.php: bug #1322871, local file inclusion diff --git a/tbl_properties_links.php b/tbl_properties_links.php index 2f448c110..eff21788a 100644 --- a/tbl_properties_links.php +++ b/tbl_properties_links.php @@ -63,6 +63,7 @@ if (!$tbl_is_view) { $tabs['empty']['args']['sql_query'] = $ln8_stt . PMA_backquote($table); $tabs['empty']['args']['zero_rows'] = sprintf($strTableHasBeenEmptied, htmlspecialchars($table)); $tabs['empty']['attr'] = 'onclick="return confirmLink(this, \'' . $ln8_stt . PMA_jsFormat($table) . '\')"'; + $tabs['empty']['args']['goto'] = 'tbl_properties_structure.php'; $tabs['empty']['class'] = 'caution'; } $tabs['empty']['icon'] = 'b_empty.png'; @@ -75,6 +76,7 @@ $tabs['drop']['args']['reload'] = 1; $tabs['drop']['args']['purge'] = 1; $drop_command = 'DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE'); $tabs['drop']['args']['sql_query'] = $drop_command . ' ' . PMA_backquote($table); +$tabs['drop']['args']['goto'] = 'db_details_structure.php'; $tabs['drop']['args']['zero_rows'] = sprintf(($tbl_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped), htmlspecialchars($table)); $tabs['drop']['attr'] = 'onclick="return confirmLink(this, \'' . $drop_command . ' ' . PMA_jsFormat($table) . '\')"'; unset($drop_command);