r51900 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51899‎ | r51900 | r51901 >
Date:13:20, 15 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix regression probably from r50975 - link was not parsed
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -484,17 +484,17 @@
485485 if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) {
486486 // Only show an upload link if the user can upload
487487 $uploadTitle = SpecialPage::getTitleFor( 'Upload' );
488 - $nofile = wfMsgHtml(
 488+ $nofile = array(
489489 'filepage-nofile-link',
490490 $uploadTitle->getFullUrl( array( 'wpDestFile' => $this->img->getName() ) )
491491 );
492492 }
493493 else
494494 {
495 - $nofile = wfMsgHtml( 'filepage-nofile' );
 495+ $nofile = 'filepage-nofile';
496496 }
497497 $wgOut->setRobotPolicy( 'noindex,nofollow' );
498 - $wgOut->addHTML( '<div id="mw-imagepage-nofile" class="plainlinks">' . $nofile . '</div>' );
 498+ $wgOut->wrapWikiMsg( '<div id="mw-imagepage-nofile" class="plainlinks">$1</div>', $nofile );
499499 }
500500 }
501501

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50975Fix r50972purodha13:42, 25 May 2009

Status & tagging log