Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -522,7 +522,7 @@ |
523 | 523 | wfProfileIn( $fname ); |
524 | 524 | # Check if this page has a stable version |
525 | 525 | $sv = $this->getOverridingPageRev( $article ); |
526 | | - if ( !$row ) return; |
| 526 | + if ( !$sv ) return; |
527 | 527 | # Retrieve the text |
528 | 528 | $text = $this->getFlaggedRevText( $sv->fr_rev_id ); |
529 | 529 | # Parse the revision |
— | — | @@ -1060,7 +1060,10 @@ |
1061 | 1061 | $wgHooks['PageHistoryBeforeList'][] = array($flaggedarticle, 'addToPageHist'); |
1062 | 1062 | $wgHooks['PageHistoryLineEnding'][] = array($flaggedarticle, 'addToHistLine'); |
1063 | 1063 | $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = array($flaggedarticle, 'setPermaLink'); |
| 1064 | + |
1064 | 1065 | $wgHooks['ArticleSaveComplete'][] = array($flaggedrevs, 'autoPromoteUser'); |
| 1066 | + |
1065 | 1067 | $wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = array($flaggedrevs, 'extraLinksUpdate'); |
| 1068 | +$wgHooks['ArticleRevisionVisiblityUpdates'][] = array($flaggedrevs, 'extraLinksUpdate'); |
1066 | 1069 | $wgHooks['SpecialMovepageAfterMove'][] = array($flaggedrevs, 'updateFromMove'); |
1067 | 1070 | ?> |