r102657 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102656‎ | r102657 | r102658 >
Date:14:31, 10 November 2011
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call getRedirectTarget()
Modified paths:
  • /trunk/phase3/includes/specials/SpecialListredirects.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialListredirects.php
@@ -90,7 +90,7 @@
9191 );
9292 } else {
9393 $title = Title::makeTitle( $row->namespace, $row->title );
94 - $article = new Article( $title );
 94+ $article = WikiPage::factory( $title );
9595 return $article->getRedirectTarget();
9696 }
9797 }

Status & tagging log