aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:37:09 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:37:09 +0200
commit7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f (patch)
tree86a9a1a233ec5e09b6734b916fff834e295a3fde /include/bbcode.php
parent453a0cff3875ca1cb3587b1fa83ad5b0439faae3 (diff)
downloadvolse-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/bbcode.php')
-rw-r--r--include/bbcode.php3
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);