diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 10:37:09 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 10:37:09 +0200 |
commit | 7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f (patch) | |
tree | 86a9a1a233ec5e09b6734b916fff834e295a3fde /include | |
parent | 453a0cff3875ca1cb3587b1fa83ad5b0439faae3 (diff) | |
download | volse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.tar.gz volse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.tar.bz2 volse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.zip |
Add oembed user option for use oembed instead of standard yotube embedding.
Remove global option and parse_url use of oembed.
Diffstat (limited to 'include')
-rw-r--r-- | include/bbcode.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index b2e9cee6d..3caf2a6b1 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -92,8 +92,7 @@ function bbcode($Text,$preserve_nl = false) { // [img=widthxheight]image source[/img] $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '<img src="$3" style="height:{$2}px; width:{$1}px;" >', $Text); - $a = get_app(); - if ($a->config['system']['embed_all']){ + if (get_pconfig(local_user(), 'oembed', 'use_for_youtube' )==1){ // use oembed for youtube links $Text = preg_replace("/\[youtube\]/",'[embed]',$Text); $Text = preg_replace("/\[\/youtube\]/",'[/embed]',$Text); |