Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -389,7 +389,7 @@ |
390 | 390 | $wgHooks['TitleMoveComplete'][] = 'FlaggedRevsHooks::onTitleMoveComplete'; |
391 | 391 | # Check on undelete/merge for changes to stable version |
392 | 392 | $wgHooks['ArticleMergeComplete'][] = 'FlaggedRevsHooks::updateFromMerge'; |
393 | | -$wgHooks['ArticleRevisionUndeleted'][] = 'FlaggedRevsHooks::updateFromRestore'; |
| 393 | +$wgHooks['ArticleRevisionUndeleted'][] = 'FlaggedRevsHooks::onRevisionRestore'; |
394 | 394 | # Parser hooks, selects the desired images/templates |
395 | 395 | $wgHooks['ParserClearState'][] = 'FlaggedRevsHooks::parserAddFields'; |
396 | 396 | $wgHooks['BeforeGalleryFindFile'][] = 'FlaggedRevsHooks::galleryFindStableFileTime'; |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | /** |
97 | 97 | * Update flaggedrevs table on revision restore |
98 | 98 | */ |
99 | | - public static function updateFromRestore( $title, $revision, $oldPageID ) { |
| 99 | + public static function onRevisionRestore( $title, $revision, $oldPageID ) { |
100 | 100 | $dbw = wfGetDB( DB_MASTER ); |
101 | 101 | # Some revisions may have had null rev_id values stored when deleted. |
102 | 102 | # This hook is called after insertOn() however, in which case it is set |