X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=015e8090fc7c655dc182590c7e0ef0028988f632;hb=ecc393e1c3727029ae7cb6062269242ac885950d;hp=ba3f25d3e26e002b461e8d97ac433d3ddca286e4;hpb=a9782251e5a56a5897e0ca050d85c2c98aaa1b69;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; }