r22000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21999‎ | r22000 | r22001 >
Date:18:25, 8 May 2007
Author:aaron
Status:old
Tags:
Comment:
*typo, add hook
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -522,7 +522,7 @@
523523 wfProfileIn( $fname );
524524 # Check if this page has a stable version
525525 $sv = $this->getOverridingPageRev( $article );
526 - if ( !$row ) return;
 526+ if ( !$sv ) return;
527527 # Retrieve the text
528528 $text = $this->getFlaggedRevText( $sv->fr_rev_id );
529529 # Parse the revision
@@ -1060,7 +1060,10 @@
10611061 $wgHooks['PageHistoryBeforeList'][] = array($flaggedarticle, 'addToPageHist');
10621062 $wgHooks['PageHistoryLineEnding'][] = array($flaggedarticle, 'addToHistLine');
10631063 $wgHooks['SkinTemplateBuildNavUrlsNav_urlsAfterPermalink'][] = array($flaggedarticle, 'setPermaLink');
 1064+
10641065 $wgHooks['ArticleSaveComplete'][] = array($flaggedrevs, 'autoPromoteUser');
 1066+
10651067 $wgHooks['ArticleEditUpdatesDeleteFromRecentchanges'][] = array($flaggedrevs, 'extraLinksUpdate');
 1068+$wgHooks['ArticleRevisionVisiblityUpdates'][] = array($flaggedrevs, 'extraLinksUpdate');
10661069 $wgHooks['SpecialMovepageAfterMove'][] = array($flaggedrevs, 'updateFromMove');
10671070 ?>

Follow-up revisions

RevisionCommit summaryAuthorDate
r53496Wikidata:...minuteelectron21:40, 19 July 2009