From 07fcb9c62b643a780e84ab66f2103b664856ff12 Mon Sep 17 00:00:00 2001 From: Adam Magness Date: Wed, 31 Oct 2018 11:06:15 -0400 Subject: [PATCH] A few missed a few missed function calls. --- catavatar/catavatar.php | 2 +- curweather/curweather.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/catavatar/catavatar.php b/catavatar/catavatar.php index 66780e1f..77dd1812 100644 --- a/catavatar/catavatar.php +++ b/catavatar/catavatar.php @@ -55,7 +55,7 @@ function catavatar_addon_settings(App $a, &$s) } $t = Renderer::getMarkupTemplate('settings.tpl', 'addon/catavatar/'); - $s .= replace_macros ($t, [ + $s .= Renderer::replaceMacros($t, [ '$postpost' => !empty($_POST['catavatar-morecat']) || !empty($_POST['catavatar-emailcat']), '$uncache' => time(), '$uid' => local_user(), diff --git a/curweather/curweather.php b/curweather/curweather.php index 3382e731..85fd4a60 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -137,7 +137,7 @@ function curweather_network_mod_init(App $a, &$b) if ($ok) { $t = Renderer::getMarkupTemplate("widget.tpl", "addon/curweather/" ); - $curweather = replace_macros ($t, [ + $curweather = Renderer::replaceMacros($t, [ '$title' => L10n::t("Current Weather"), '$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'), '$city' => $res['city'], @@ -200,7 +200,7 @@ function curweather_addon_settings(App $a, &$s) // load template and replace the macros $t = Renderer::getMarkupTemplate("settings.tpl", "addon/curweather/" ); - $s = replace_macros ($t, [ + $s = Renderer::replaceMacros($t, [ '$submit' => L10n::t('Save Settings'), '$header' => L10n::t('Current Weather').' '.L10n::t('Settings'), '$noappidtext' => $noappidtext, @@ -240,7 +240,7 @@ function curweather_addon_admin(App $a, &$o) $t = Renderer::getMarkupTemplate("admin.tpl", "addon/curweather/" ); - $o = replace_macros ($t, [ + $o = Renderer::replaceMacros($t, [ '$submit' => L10n::t('Save Settings'), '$cachetime' => [ 'cachetime',