X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=015e8090fc7c655dc182590c7e0ef0028988f632;hb=642f9409a77e839cd23a6aec7de5965d617f3e68;hp=ba3f25d3e26e002b461e8d97ac433d3ddca286e4;hpb=a3f757808584145287f38934a68692e43c02fd22;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index ba3f25d3e2..015e8090fc 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,13 +1,17 @@ theme_info = array(); -set_template_engine($a, 'smarty3'); +function duepuntozero_init(App $a) { - $colorset = get_pconfig( local_user(), 'duepuntozero','colorset'); +Renderer::setActiveTemplateEngine('smarty3'); + + $colorset = PConfig::get( local_user(), 'duepuntozero','colorset'); if (!$colorset) - $colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings + $colorset = Config::get('duepuntozero', 'colorset'); // user setting have priority, then node settings if ($colorset) { if ($colorset == 'greenzero') $a->page['htmlhead'] .= ''."\n"; @@ -24,92 +28,77 @@ set_template_engine($a, 'smarty3'); } $a->page['htmlhead'] .= <<< EOT EOT; }