Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -484,17 +484,17 @@ |
485 | 485 | if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) { |
486 | 486 | // Only show an upload link if the user can upload |
487 | 487 | $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); |
488 | | - $nofile = wfMsgHtml( |
| 488 | + $nofile = array( |
489 | 489 | 'filepage-nofile-link', |
490 | 490 | $uploadTitle->getFullUrl( array( 'wpDestFile' => $this->img->getName() ) ) |
491 | 491 | ); |
492 | 492 | } |
493 | 493 | else |
494 | 494 | { |
495 | | - $nofile = wfMsgHtml( 'filepage-nofile' ); |
| 495 | + $nofile = 'filepage-nofile'; |
496 | 496 | } |
497 | 497 | $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 ); |
499 | 499 | } |
500 | 500 | } |
501 | 501 | |