Index: trunk/extensions/Collection/Collection.suggest.php |
— | — | @@ -367,7 +367,7 @@ |
368 | 368 | } |
369 | 369 | |
370 | 370 | $article = new Article( $title, 0 ); |
371 | | - if ( method_exists( Title, 'newFromRedirectRecurse' ) ) { |
| 371 | + if ( method_exists( $title, 'newFromRedirectRecurse' ) ) { |
372 | 372 | return Title::newFromRedirectRecurse( $article->getContent() ); |
373 | 373 | } else { |
374 | 374 | return Title::newFromRedirect( $article->getContent() ); |
— | — | @@ -411,7 +411,7 @@ |
412 | 412 | if ( is_null( $title ) || !$title->exists() ) { |
413 | 413 | continue; |
414 | 414 | } |
415 | | - $link = $title->getText(); |
| 415 | + $link = $this->resolveRedirects( $title )->getText(); |
416 | 416 | |
417 | 417 | if ( isset ($linkmap[$link] ) ) { |
418 | 418 | $linkmap[$link][$link] = true; |