From 0281882ed8a91c4537b172c4773087d720df256c Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sun, 23 May 2004 16:54:48 +0000 Subject: [PATCH] keep image stuff on one line to help parser in cases where a thumb is embedded in a list ( :[[image:something\|thumb]]) --- includes/Skin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 91faf5b5d5..ca7aed5a0f 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1833,9 +1833,9 @@ class Skin { "\"{$alt}\""; } if ( "" != $align ) { - $s = "
{$s}\n
"; + $s = "
{$s}
"; } - return $prefix.$s.$postfix; + return str_replace("\n", ' ',$prefix.$s.$postfix); } @@ -1897,8 +1897,8 @@ class Skin { 'width="15" height="11" alt="'.$more.'" />'; } } - $s .= '
'.$zoomicon.$label."
\n"; - return $s; + $s .= '
'.$zoomicon.$label."
"; + return str_replace("\n", ' ', $s); } function makeMediaLink( $name, $url, $alt = "" ) { -- 2.20.1