From: Tim Starling Date: Mon, 6 Oct 2008 04:22:19 +0000 (+0000) Subject: Remove apparently unnecessary around images, causes invalid XHTML when the... X-Git-Tag: 1.31.0-rc.0~44896 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=7770fb4d340df67b976db117ea4eb3d41c5fec8e;p=lhc%2Fweb%2Fwiklou.git Remove apparently unnecessary around images, causes invalid XHTML when the image contains block-level elements, as in ImageMap and OggHandler. --- diff --git a/includes/Linker.php b/includes/Linker.php index 18fbf702c2..7de2e3771f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -803,7 +803,7 @@ class Linker { 'img-class' => isset( $fp['border'] ) ? 'thumbborder' : false ) ); } if ( '' != $fp['align'] ) { - $s = "
{$s}
"; + $s = "
{$s}
"; } return str_replace("\n", ' ',$prefix.$s.$postfix); }