r91383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91382‎ | r91383 | r91384 >
Date:20:37, 3 July 2011
Author:robin
Status:ok
Tags:
Comment:
Use Linker::linkKnown per Siebrand on r91377.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialImport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialImport.php
@@ -350,15 +350,13 @@
351351 $args = func_get_args();
352352 call_user_func_array( $this->mOriginalPageOutCallback, $args );
353353
354 - $skin = $wgUser->getSkin();
355 -
356354 $this->mPageCount++;
357355
358356 $localCount = $wgLang->formatNum( $successCount );
359357 $contentCount = $wgContLang->formatNum( $successCount );
360358
361359 if( $successCount > 0 ) {
362 - $wgOut->addHTML( "<li>" . $skin->linkKnown( $title ) . " " .
 360+ $wgOut->addHTML( "<li>" . Linker::linkKnown( $title ) . " " .
363361 wfMsgExt( 'import-revision-count', array( 'parsemag', 'escape' ), $localCount ) .
364362 "</li>\n"
365363 );
@@ -392,7 +390,7 @@
393391 $article->updateRevisionOn( $dbw, $nullRevision );
394392 wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest, $wgUser) );
395393 } else {
396 - $wgOut->addHTML( "<li>" . $skin->linkKnown( $title ) . " " .
 394+ $wgOut->addHTML( "<li>" . Linker::linkKnown( $title ) . " " .
397395 wfMsgHtml( 'import-nonewrevisions' ) . "</li>\n" );
398396 }
399397 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91377Changing back to $wgUser in SpecialImport.php. Importing pages returned "call...robin17:56, 3 July 2011

Status & tagging log