parent
9079480d4a
commit
07fcb9c62b
|
@ -55,7 +55,7 @@ function catavatar_addon_settings(App $a, &$s)
|
||||||
}
|
}
|
||||||
|
|
||||||
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/catavatar/');
|
$t = Renderer::getMarkupTemplate('settings.tpl', 'addon/catavatar/');
|
||||||
$s .= replace_macros ($t, [
|
$s .= Renderer::replaceMacros($t, [
|
||||||
'$postpost' => !empty($_POST['catavatar-morecat']) || !empty($_POST['catavatar-emailcat']),
|
'$postpost' => !empty($_POST['catavatar-morecat']) || !empty($_POST['catavatar-emailcat']),
|
||||||
'$uncache' => time(),
|
'$uncache' => time(),
|
||||||
'$uid' => local_user(),
|
'$uid' => local_user(),
|
||||||
|
|
|
@ -137,7 +137,7 @@ function curweather_network_mod_init(App $a, &$b)
|
||||||
|
|
||||||
if ($ok) {
|
if ($ok) {
|
||||||
$t = Renderer::getMarkupTemplate("widget.tpl", "addon/curweather/" );
|
$t = Renderer::getMarkupTemplate("widget.tpl", "addon/curweather/" );
|
||||||
$curweather = replace_macros ($t, [
|
$curweather = Renderer::replaceMacros($t, [
|
||||||
'$title' => L10n::t("Current Weather"),
|
'$title' => L10n::t("Current Weather"),
|
||||||
'$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
|
'$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'),
|
||||||
'$city' => $res['city'],
|
'$city' => $res['city'],
|
||||||
|
@ -200,7 +200,7 @@ function curweather_addon_settings(App $a, &$s)
|
||||||
// load template and replace the macros
|
// load template and replace the macros
|
||||||
$t = Renderer::getMarkupTemplate("settings.tpl", "addon/curweather/" );
|
$t = Renderer::getMarkupTemplate("settings.tpl", "addon/curweather/" );
|
||||||
|
|
||||||
$s = replace_macros ($t, [
|
$s = Renderer::replaceMacros($t, [
|
||||||
'$submit' => L10n::t('Save Settings'),
|
'$submit' => L10n::t('Save Settings'),
|
||||||
'$header' => L10n::t('Current Weather').' '.L10n::t('Settings'),
|
'$header' => L10n::t('Current Weather').' '.L10n::t('Settings'),
|
||||||
'$noappidtext' => $noappidtext,
|
'$noappidtext' => $noappidtext,
|
||||||
|
@ -240,7 +240,7 @@ function curweather_addon_admin(App $a, &$o)
|
||||||
|
|
||||||
$t = Renderer::getMarkupTemplate("admin.tpl", "addon/curweather/" );
|
$t = Renderer::getMarkupTemplate("admin.tpl", "addon/curweather/" );
|
||||||
|
|
||||||
$o = replace_macros ($t, [
|
$o = Renderer::replaceMacros($t, [
|
||||||
'$submit' => L10n::t('Save Settings'),
|
'$submit' => L10n::t('Save Settings'),
|
||||||
'$cachetime' => [
|
'$cachetime' => [
|
||||||
'cachetime',
|
'cachetime',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user