Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php |
— | — | @@ -286,11 +286,14 @@ |
287 | 287 | return false; // If too many expensive functions have been run |
288 | 288 | } |
289 | 289 | |
290 | | - public static function PureWikiDeletionCreateTable() { |
291 | | - global $wgExtNewTables; |
292 | | - $wgExtNewTables[] = array( |
293 | | - 'blanked_page', |
294 | | - dirname( __FILE__ ) . '/purewikideletiontable.sql' ); |
295 | | - return true; |
296 | | - } |
| 290 | + public static function PureWikiDeletionCreateTable( $updater = null ) { |
| 291 | + if ( $updater === null ) { |
| 292 | + global $wgExtNewTables; |
| 293 | + $wgExtNewTables[] = array( 'blanked_page', dirname( __FILE__ ) . '/purewikideletiontable.sql' ); |
| 294 | + } else { |
| 295 | + $updater->addExtensionUpdate( array( 'addTable', 'blanked_page', |
| 296 | + dirname( __FILE__ ) . '/purewikideletiontable.sql', true ) ); |
| 297 | + } |
| 298 | + return true; |
| 299 | + } |
297 | 300 | } |