]> git.mxchange.org Git - friendica.git/commitdiff
fix youtube videos on FF
authorFriendika <info@friendika.com>
Thu, 9 Dec 2010 21:41:08 +0000 (13:41 -0800)
committerFriendika <info@friendika.com>
Thu, 9 Dec 2010 21:41:08 +0000 (13:41 -0800)
include/bbcode.php

index fbae7bc327299416d39ea709558290799f63b007..351510f6d29251df91ac84101a7096de0bbe82eb 100644 (file)
@@ -80,7 +80,7 @@ function bbcode($Text) {
 
        // Youtube extensions
         $Text = preg_replace("/\[youtube\]http:\/\/www.youtube.com\/watch\?v\=(.+?)\[\/youtube\]/",'[youtube]$1[/youtube]',$Text); 
-       $Text = preg_replace("/\[youtube\](.+?)\[\/youtube\]/", '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><!--[if IE]><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350" /><![endif]--></object>', $Text);
+       $Text = preg_replace("/\[youtube\](.+?)\[\/youtube\]/", '<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" ><param name="movie" value="http://www.youtube.com/v/$1"></param><!--[if IE]><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350" /><![endif]--></object>', $Text);
 
        return $Text;
 }