From c216717f1d5c762b45b1e463d3ceff50d085cfeb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 9 May 2008 18:40:52 +0000 Subject: [PATCH] Wikify some image messages: * linkstoimage * nolinkstoimage * redirectstofile Two of these were previously raw-HTML paragraphs, and had div classes stuck on them on eg English Wikipedia. r34507 changed them into plaintext, breaking them. Since image pages are already swathed with little wiki bits (meta table, other various bits), shouldn't be any harm in making these properly flexible wiki messages. --- includes/ImagePage.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index c77c0776cf..400fea9c64 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -537,11 +537,11 @@ EOT ); if ( 0 == $dbr->numRows( $res ) ) { - $wgOut->addHtml( Xml::element('p', null ,wfMsg( "nolinkstoimage" ) )."\n" ); + $wgOut->addWikiMsg( 'nolinkstoimage' ); return; } - $wgOut->addHTML( Xml::element('p', null, wfMsg( 'linkstoimage' ) )."\n" ); - $wgOut->addHTML( Xml::openElement( 'ul' )); + $wgOut->addWikiMsg( 'linkstoimage' ); + $wgOut->addHTML( "