r55968 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55967‎ | r55968 | r55969 >
Date:14:36, 7 September 2009
Author:jojo
Status:deferred
Tags:
Comment:
fix redirect handling
Modified paths:
  • /trunk/extensions/Collection/Collection.suggest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/Collection.suggest.php
@@ -367,7 +367,7 @@
368368 }
369369
370370 $article = new Article( $title, 0 );
371 - if ( method_exists( Title, 'newFromRedirectRecurse' ) ) {
 371+ if ( method_exists( $title, 'newFromRedirectRecurse' ) ) {
372372 return Title::newFromRedirectRecurse( $article->getContent() );
373373 } else {
374374 return Title::newFromRedirect( $article->getContent() );
@@ -411,7 +411,7 @@
412412 if ( is_null( $title ) || !$title->exists() ) {
413413 continue;
414414 }
415 - $link = $title->getText();
 415+ $link = $this->resolveRedirects( $title )->getText();
416416
417417 if ( isset ($linkmap[$link] ) ) {
418418 $linkmap[$link][$link] = true;

Status & tagging log