http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89429

Revision: 89429
Author:   brion
Date:     2011-06-03 18:39:10 +0000 (Fri, 03 Jun 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/phase3/includes/db/Database.php

Modified: trunk/phase3/includes/db/Database.php
===================================================================
--- trunk/phase3/includes/db/Database.php       2011-06-03 17:43:09 UTC (rev 
89428)
+++ trunk/phase3/includes/db/Database.php       2011-06-03 18:39:10 UTC (rev 
89429)
@@ -2445,12 +2445,7 @@
         * @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' );
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to