r57745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57744‎ | r57745 | r57746 >
Date:06:16, 15 October 2009
Author:aaron
Status:ok
Tags:
Comment:
Renamed revision restore hook
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -389,7 +389,7 @@
390390 $wgHooks['TitleMoveComplete'][] = 'FlaggedRevsHooks::onTitleMoveComplete';
391391 # Check on undelete/merge for changes to stable version
392392 $wgHooks['ArticleMergeComplete'][] = 'FlaggedRevsHooks::updateFromMerge';
393 -$wgHooks['ArticleRevisionUndeleted'][] = 'FlaggedRevsHooks::updateFromRestore';
 393+$wgHooks['ArticleRevisionUndeleted'][] = 'FlaggedRevsHooks::onRevisionRestore';
394394 # Parser hooks, selects the desired images/templates
395395 $wgHooks['ParserClearState'][] = 'FlaggedRevsHooks::parserAddFields';
396396 $wgHooks['BeforeGalleryFindFile'][] = 'FlaggedRevsHooks::galleryFindStableFileTime';
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -95,7 +95,7 @@
9696 /**
9797 * Update flaggedrevs table on revision restore
9898 */
99 - public static function updateFromRestore( $title, $revision, $oldPageID ) {
 99+ public static function onRevisionRestore( $title, $revision, $oldPageID ) {
100100 $dbw = wfGetDB( DB_MASTER );
101101 # Some revisions may have had null rev_id values stored when deleted.
102102 # This hook is called after insertOn() however, in which case it is set

Status & tagging log