]> git.mxchange.org Git - friendica.git/commitdiff
again fix bbcode image sizes
authorFriendika <info@friendika.com>
Sun, 18 Sep 2011 07:19:19 +0000 (00:19 -0700)
committerFriendika <info@friendika.com>
Sun, 18 Sep 2011 07:19:19 +0000 (00:19 -0700)
include/bbcode.php

index 3d6b907a68aeaa77aeaece3161f6c660e28c51ca..cbe19de54a2c2bf7ba4cf1395a22cf5e2cb1e98f 100644 (file)
@@ -114,7 +114,7 @@ function bbcode($Text,$preserve_nl = false) {
        $Text = preg_replace("/\[quote\](.*?)\[\/quote\]/ism","$QuoteLayout", $Text);
          
        // [img=widthxheight]image source[/img]
-       $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height:{$2}px; width:{$1}px;" >', $Text);
+       $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height: $2px; width: $1px;" >', $Text);
 
        // Images
        // [img]pathtoimage[/img]