From 5ef6ef1d6f150fb63d868d16bd9754d713d18356 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 15 Jun 2009 13:20:40 +0000 Subject: [PATCH] Fix regression probably from r50975 - link was not parsed --- includes/ImagePage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } } -- 2.20.1