From: Niklas Laxström Date: Mon, 15 Jun 2009 13:20:40 +0000 (+0000) Subject: Fix regression probably from r50975 - link was not parsed X-Git-Tag: 1.31.0-rc.0~41367 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=5ef6ef1d6f150fb63d868d16bd9754d713d18356;p=lhc%2Fweb%2Fwiklou.git Fix regression probably from r50975 - link was not parsed --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 3d815c66c2..bd14c3b31c 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -484,17 +484,17 @@ EOT if ( $wgEnableUploads && $wgUser->isAllowed( 'upload' ) ) { // Only show an upload link if the user can upload $uploadTitle = SpecialPage::getTitleFor( 'Upload' ); - $nofile = wfMsgHtml( + $nofile = array( 'filepage-nofile-link', $uploadTitle->getFullUrl( array( 'wpDestFile' => $this->img->getName() ) ) ); } else { - $nofile = wfMsgHtml( 'filepage-nofile' ); + $nofile = 'filepage-nofile'; } $wgOut->setRobotPolicy( 'noindex,nofollow' ); - $wgOut->addHTML( '' ); + $wgOut->wrapWikiMsg( '', $nofile ); } }