diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-18 22:33:23 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-18 22:33:23 -0800 |
commit | ca2e2f5f454bda13902f9d8e26c49635b69558e2 (patch) | |
tree | c8dfe0e2ee950e84a1405cc74c72ab65c8ebaca3 | |
parent | 92f3d863fa4a8a96d4f882a91a81d888a58230e5 (diff) | |
download | volse-hubzilla-ca2e2f5f454bda13902f9d8e26c49635b69558e2.tar.gz volse-hubzilla-ca2e2f5f454bda13902f9d8e26c49635b69558e2.tar.bz2 volse-hubzilla-ca2e2f5f454bda13902f9d8e26c49635b69558e2.zip |
deprecate bb_iframe
-rw-r--r-- | include/bbcode.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index b315255f5..32354aeda 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1067,15 +1067,15 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) $Text = preg_replace("/\[zaudio\](.*?)\[\/zaudio\]/", '<a class="zid" href="$1" target="_blank" >$1</a>', $Text); } - if ($tryoembed){ - if (strpos($Text,'[/iframe]') !== false) { - $Text = preg_replace_callback("/\[iframe\](.*?)\[\/iframe\]/ism", 'bb_iframe', $Text); - } - } else { - if (strpos($Text,'[/iframe]') !== false) { - $Text = preg_replace("/\[iframe\](.*?)\[\/iframe\]/ism", '<a href="$1" target="_blank" >$1</a>', $Text); - } - } +// if ($tryoembed){ +// if (strpos($Text,'[/iframe]') !== false) { +// $Text = preg_replace_callback("/\[iframe\](.*?)\[\/iframe\]/ism", 'bb_iframe', $Text); +// } +// } else { +// if (strpos($Text,'[/iframe]') !== false) { +// $Text = preg_replace("/\[iframe\](.*?)\[\/iframe\]/ism", '<a href="$1" target="_blank" >$1</a>', $Text); +// } +// } // oembed tag $Text = oembed_bbcode2html($Text); |