From: Ævar Arnfjörð Bjarmason Date: Wed, 31 Aug 2005 14:11:32 +0000 (+0000) Subject: * Code cleanup X-Git-Tag: 1.6.0~1749 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=c6510cf83bd188cbc2a2c62fc5a14650b4d60e9f;p=lhc%2Fweb%2Fwiklou.git * Code cleanup --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index faea2747a0..28f076a39c 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -115,11 +115,11 @@ class ImageGallery if( $this->mShowBytes ) { if( $img->exists() ) { - $nb = wfMsg( 'nbytes', $wgLang->formatNum( $img->getSize() ) ); + $nb = wfMsgHtml( 'nbytes', $wgLang->formatNum( $img->getSize() ) ); } else { - $nb = wfMsg( 'filemissing' ); + $nb = wfMsgHtml( 'filemissing' ); } - $nb = htmlspecialchars( $nb ) . "
\n"; + $nb = "$nb
\n"; } else { $nb = ''; } @@ -135,7 +135,7 @@ class ImageGallery # ATTENTION: The newline after
is needed to accommodate htmltidy which # in version 4.8.6 generated crackpot html in its absence, see: - # http://bugzilla.wikimedia.org/show_bug.cgi?id=1765 + # http://bugzilla.wikimedia.org/show_bug.cgi?id=1765 -Ævar $s .= $sk->makeKnownLinkObj( $nt, $thumb->toHtml() ) . '
' . "\n" . $textlink . $text . $nb . '
';