Fix regression probably from r50975 - link was not parsed
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 15 Jun 2009 13:20:40 +0000 (13:20 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 15 Jun 2009 13:20:40 +0000 (13:20 +0000)
includes/ImagePage.php

index 3d815c6..bd14c3b 100644 (file)
@@ -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( '<div id="mw-imagepage-nofile" class="plainlinks">' . $nofile . '</div>' );
+                       $wgOut->wrapWikiMsg( '<div id="mw-imagepage-nofile" class="plainlinks">$1</div>', $nofile );
                }
        }