]> git.mxchange.org Git - friendica.git/commitdiff
fix a random profile error message
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 7 Jun 2012 12:49:33 +0000 (08:49 -0400)
committerfabrixxm <fabrix.xm@gmail.com>
Thu, 7 Jun 2012 12:49:33 +0000 (08:49 -0400)
include/oembed.php [changed mode: 0644->0755]
view/oembed_video.tpl [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 1f45d28..e2504b7
@@ -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,
old mode 100644 (file)
new mode 100755 (executable)
index 5824d8d..d3a9a93
@@ -1,4 +1,4 @@
 <a href='$embedurl' onclick='this.innerHTML=Base64.decode("$escapedhtml"); return false;' style='float:left; margin: 1em; position: relative;'>
        <img width='$tw' height='$th' src='$turl' >
-       <div style='position: absolute; top: 0px; left: 0px; width: $twpx; height: $thpx; background: url(images/icons/48/play.png) no-repeat center center;'></div>
+       <div style='position: absolute; top: 0px; left: 0px; width: $twpx; height: $thpx; background: url($baseurl/images/icons/48/play.png) no-repeat center center;'></div>
 </a>