r84454 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84453‎ | r84454 | r84455 >
Date:15:54, 21 March 2011
Author:aaron
Status:ok
Tags:
Comment:
Fixed occasional fatal in getRedirectHtml(), not sure when this cropped up
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -728,9 +728,9 @@
729729
730730 // Get fancy redirect arrow and link HTML
731731 protected function getRedirectHtml( $text ) {
732 - $rTarget = $this->article->followRedirectText( $text );
733 - if ( $rTarget ) {
734 - return $this->article->viewRedirect( array( $rTarget ) );
 732+ $rTargets = Title::newFromRedirectArray( $text );
 733+ if ( $rTargets ) {
 734+ return $this->article->viewRedirect( $rTargets );
735735 }
736736 return '';
737737 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r846041.17wmf1: MFT r83494, r84454, r84464, r84543, r84574. Did not merge the i18n ...catrope16:45, 23 March 2011
r85033MFT more extension revs: r82601, r82654, r82698, r82755, r82756, r82759, r829...demon18:49, 30 March 2011

Status & tagging log