diff options
author | Michael Meer <michael@meer.name> | 2014-01-24 11:59:15 +0100 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2014-01-24 11:59:15 +0100 |
commit | 844df110586e6726581c620754fef5419f6bea5e (patch) | |
tree | c0d8cb4bd3ad946ca91fed3d5d90227d796c0bfe /include/oembed.php | |
parent | a2b07ed2814972507bf971a5ac6ed09c399e29e7 (diff) | |
parent | 21f6549204f60670af55c7ba22a00f7d7eae9c2b (diff) | |
download | volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.tar.gz volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.tar.bz2 volse-hubzilla-844df110586e6726581c620754fef5419f6bea5e.zip |
Merge branch 'master' of https://github.com/friendica/red
to be in sync with master repro
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-x | include/oembed.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/oembed.php b/include/oembed.php index 6946ba4b8..d8671a752 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -1,12 +1,10 @@ <?php /** @file */ function oembed_replacecb($matches){ -// logger('oembedcb'); + $embedurl=$matches[1]; $j = oembed_fetch_url($embedurl); - $s = oembed_format_object($j); - return $s;//oembed_iframe($s,$j->width,$j->height); - - + $s = oembed_format_object($j); + return $s; } @@ -36,8 +34,9 @@ function oembed_fetch_url($embedurl){ if($r) $zrl = true; } - if($zrl) + if($zrl) { $embedurl = zid($embedurl); + } } else { // try oembed autodiscovery @@ -89,6 +88,7 @@ function oembed_format_object($j){ $a = get_app(); $embedurl = $j->embedurl; $jhtml = oembed_iframe($j->embedurl,(isset($j->width) ? $j->width : null), (isset($j->height) ? $j->height : null) ); + $ret="<span class='oembed ".$j->type."'>"; switch ($j->type) { case "video": { |