r108456 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108455‎ | r108456 | r108457 >
Date:18:46, 9 January 2012
Author:ialex
Status:ok
Tags:
Comment:
Use Article::newFromTitle() instead of MediaWiki::articleFromTitle(). The former was added in MW 1.18 and since the extension uses a context, it already requires MW 1.18.
Modified paths:
  • /trunk/extensions/DumpHTML/dumpHTML.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/DumpHTML/dumpHTML.inc
@@ -801,7 +801,7 @@
802802 if ( $ns == NS_SPECIAL ) {
803803 SpecialPage::executePath( $wgTitle, $context );
804804 } else {
805 - $article = MediaWiki::articleFromTitle( $wgTitle, $context );
 805+ $article = Article::newFromTitle( $wgTitle, $context );
806806 $rt = $article->followRedirect();
807807 if ( is_object( $rt ) ) {
808808 return $this->getRedirect( $rt );

Status & tagging log