From c6510cf83bd188cbc2a2c62fc5a14650b4d60e9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 31 Aug 2005 14:11:32 +0000 Subject: [PATCH] * Code cleanup --- includes/ImageGallery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 . '
'; -- 2.20.1