Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | |
241 | 241 | ######### Hook attachments ######### |
242 | 242 | # Set $wgFlaggedArticle |
243 | | - $wgHooks['ArticleFromTitle'][] = 'wfInitFlaggedArticle'; |
| 243 | + $wgHooks['MediaWikiPerformAction'][] = 'wfInitFlaggedArticle'; |
244 | 244 | # Autopromote Editors |
245 | 245 | $wgHooks['ArticleSaveComplete'][] = 'FlaggedRevs::autoPromoteUser'; |
246 | 246 | # Adds table link references to include ones from the stable version |
— | — | @@ -280,9 +280,9 @@ |
281 | 281 | ######### |
282 | 282 | } |
283 | 283 | |
284 | | -function wfInitFlaggedArticle( $title, $article ) { |
| 284 | +function wfInitFlaggedArticle( $output, $article, $title, $user, $request ) { |
285 | 285 | global $wgFlaggedArticle, $wgHooks; |
286 | | - if( $title->isRedirect() || !FlaggedRevs::isPageReviewable($title) ) |
| 286 | + if( !FlaggedRevs::isPageReviewable($title) ) |
287 | 287 | return true; |
288 | 288 | # Initialize and set article hooks |
289 | 289 | $wgFlaggedArticle = new FlaggedArticle( $title ); |