aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2012-06-07 08:49:33 -0400
committerfabrixxm <fabrix.xm@gmail.com>2012-06-07 08:49:33 -0400
commit1d832618a4340526092fce9e49f4580f767e1526 (patch)
treef0d16d5bfe8e12a74afe2071970c83bdc10cbf35 /include
parent757037c3bfe7c8f23a8dbda2f7be7b1dfaacf739 (diff)
downloadvolse-hubzilla-1d832618a4340526092fce9e49f4580f767e1526.tar.gz
volse-hubzilla-1d832618a4340526092fce9e49f4580f767e1526.tar.bz2
volse-hubzilla-1d832618a4340526092fce9e49f4580f767e1526.zip
fix a random profile error message
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--]include/oembed.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 1f45d2814..e2504b7eb 100644..100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -65,7 +65,8 @@ function oembed_fetch_url($embedurl){
}
function oembed_format_object($j){
- $embedurl = $j->embedurl;
+ $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) {
@@ -78,6 +79,7 @@ function oembed_format_object($j){
$th=120; $tw = $th*$tr;
$tpl=get_markup_template('oembed_video.tpl');
$ret.=replace_macros($tpl, array(
+ '$baseurl' => $a->get_baseurl(),
'$embedurl'=>$embedurl,
'$escapedhtml'=>base64_encode($jhtml),
'$tw'=>$tw,