r79516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79515‎ | r79516 | r79517 >
Date:19:01, 3 January 2011
Author:ialex
Status:deferred
Tags:
Comment:
Converted PureWikiDeletion extension to use the new version of the LoadExtensionSchemaUpdates hook
Modified paths:
  • /trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php
@@ -286,11 +286,14 @@
287287 return false; // If too many expensive functions have been run
288288 }
289289
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+ }
297300 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r79538Use r79537 in PureWikiDeletion (r79516 is where I spotted this and had the aw...demon23:58, 3 January 2011

Status & tagging log