From d97e37bbe6596a7814c3919f359fd043b6474d7e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 3 Jun 2011 18:39:10 +0000 Subject: [PATCH] Revert r89409: provided a default Database->listTables() implementation that didn't actually check the database, thus missing extension tables, any custom tables, any other tables being managed deliberately, and would be missing a matching table prefix if any. --- includes/db/Database.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index 85e3b13d50..b26970eb0d 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2445,12 +2445,7 @@ abstract class DatabaseBase implements DatabaseType { * @param $fname String: calling function name */ function listTables( $prefix = null, $fname = 'DatabaseBase::listTables' ) { - global $IP; - //throw new MWException( 'DatabaseBase::listTables is not implemented in descendant class' ); - $tables = file_get_contents( "$IP/maintenance/tables.sql" ); - preg_match_all('/create table \/\*_\*\/([a-z0-9_]*)/i', $tables, $matches, PREG_PATTERN_ORDER); - - return $matches[1]; + throw new MWException( 'DatabaseBase::listTables is not implemented in descendant class' ); } /** -- 2.20.1