Use common infrastructure for getting tables.

This commit is contained in:
Michal Čihař
2005-10-18 15:14:52 +00:00
parent b654a24543
commit b9c79316ef
2 changed files with 2 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2005-10-18 Michal Čihař <michal@cihar.com>
* libraries/relation.lib.php: Do not set database if not needed.
* libraries/common.lib.php: Use common infrastructure for getting tables.
2005-10-18 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* querywindow.php: wrong handling of linebreaks in query: bug #1243888

View File

@@ -1592,9 +1592,7 @@ if ($is_minimum_common == FALSE) {
function PMA_getTableList( $db ) {
$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
$tables = PMA_DBI_fetch_result(
'SHOW TABLE STATUS FROM ' . PMA_backquote( $db ),
'Name' );
$tables = PMA_DBI_get_tables_full($db);
if ( count( $tables ) < 1 ) {
return $tables;
}