diff --git a/ChangeLog b/ChangeLog index ec0e19404..46612a925 100755 --- a/ChangeLog +++ b/ChangeLog @@ -76,6 +76,8 @@ $Source$ #1165206). * config.default.php, sql.php, Documentation.html: Allow browse page to be default (RFE #1228013). + * db_details_structure.php, left.php, tbl_properties_links.php: Do not + pass default query to sql.php as it is not needed right now. 2005-11-22 Sebastian Mendel * added test/theme.php: for testing themes diff --git a/db_details_structure.php b/db_details_structure.php index ff938837e..c51f6169b 100644 --- a/db_details_structure.php +++ b/db_details_structure.php @@ -179,12 +179,8 @@ foreach ( $tables as $keyname => $each_table ) { } if ( $each_table['TABLE_ROWS'] > 0 ) { - $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($each_table['TABLE_NAME']) . '\'', 'label'); - $browse_table = '' . $titles['Browse'] . ''; - $search_table = '' - . $titles['Search'] . ''; + $browse_table = '' . $titles['Browse'] . ''; + $search_table = '' . $titles['Search'] . ''; } else { $browse_table = $titles['NoBrowse']; $search_table = $titles['NoSearch']; diff --git a/left.php b/left.php index 50f550ce7..625b18350 100644 --- a/left.php +++ b/left.php @@ -470,9 +470,7 @@ function PMA_displayTableList( $tables, $visible = false, .' href="sql.php?' . $GLOBALS['common_url_query'] .'&table=' . urlencode( $table['Name'] ) .'&goto=' . $GLOBALS['cfg']['DefaultTabTable'] - .'&sql_query=' . urlencode('SELECT * FROM `' - . $table['Name'] . '`') . '" ' - .' >' + . '" >' .' 0 || $tbl_is_view) { $tabs['browse']['link'] = 'sql.php'; - $tabs['browse']['args']['sql_query'] = isset($book_sql_query) && $book_sql_query != FALSE ? $book_sql_query : 'SELECT * FROM ' . PMA_backquote($table); $tabs['browse']['args']['pos'] = 0; $tabs['search']['link'] = 'tbl_select.php'; }