X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=729c5bb0852a2314c0e77157daa16404c5686a28;hb=22c1cd3cd12d8a565c83249ccf691723a76a47bd;hp=eb036a3900ad290b38f01144a2ef0014b7a57825;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index eb036a3900..729c5bb085 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -1,6 +1,6 @@
get( local_user(), 'duepuntozero','colorset');
- if (!$colorset)
- $colorset = DI::config()->get('duepuntozero', 'colorset'); // user setting have priority, then node settings
- if ($colorset) {
- if ($colorset == 'greenzero')
- DI::page()['htmlhead'] .= ''."\n";
- if ($colorset == 'purplezero')
- DI::page()['htmlhead'] .= ''."\n";
- if ($colorset == 'easterbunny')
- DI::page()['htmlhead'] .= ''."\n";
- if ($colorset == 'darkzero')
- DI::page()['htmlhead'] .= ''."\n";
- if ($colorset == 'comix')
- DI::page()['htmlhead'] .= ''."\n";
- if ($colorset == 'slackr')
- DI::page()['htmlhead'] .= ''."\n";
- }
+ Renderer::setActiveTemplateEngine('smarty3');
+
+ $colorset = null;
+
+ if (DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
+ $colorset = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'duepuntozero', 'colorset');
+ if (!$colorset)
+ $colorset = DI::config()->get('duepuntozero', 'colorset'); // user setting have priority, then node settings
+ }
+
+ if ($colorset) {
+ if ($colorset == 'greenzero')
+ DI::page()['htmlhead'] .= '' . "\n";
+ if ($colorset == 'purplezero')
+ DI::page()['htmlhead'] .= '' . "\n";
+ if ($colorset == 'easterbunny')
+ DI::page()['htmlhead'] .= '' . "\n";
+ if ($colorset == 'darkzero')
+ DI::page()['htmlhead'] .= '' . "\n";
+ if ($colorset == 'comix')
+ DI::page()['htmlhead'] .= '' . "\n";
+ if ($colorset == 'slackr')
+ DI::page()['htmlhead'] .= '' . "\n";
+ }
DI::page()['htmlhead'] .= <<< EOT