[widgets] Remove superfluous $baseurl template variable
[friendica-addons.git/.git] / widgets / widgets.php
index 4cb28cd..5c07596 100644 (file)
@@ -62,7 +62,6 @@ function widgets_settings(&$a,&$o) {
        $t = Renderer::getMarkupTemplate("settings.tpl", "addon/widgets/");
        $o .= Renderer::replaceMacros($t, [
                '$submit' => L10n::t('Generate new key'),
-               '$baseurl' => $a->getBaseURL(),
                '$title' => "Widgets",
                '$label' => L10n::t('Widgets key'),
                '$key' => $key,
@@ -77,7 +76,7 @@ function widgets_module() {
 }
 
 function _abs_url($s){
-       $a = get_app();
+       $a = \get_app();
        return preg_replace("|href=(['\"])([^h][^t][^t][^p])|", "href=\$1".$a->getBaseURL()."/\$2", $s);
 }