]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/duepuntozero/style.php
attachment preview: mv some js functions from frio to the linkPreview to make linkPre...
[friendica.git] / view / theme / duepuntozero / style.php
index 5d841f1084b85af746d6ef90f655878e6aa223b5..a5810f2dc131cb06237fbe253b645c8867d970c1 100644 (file)
@@ -10,15 +10,17 @@ if (file_exists("$THEMEPATH/style.css")) {
        echo file_get_contents("$THEMEPATH/style.css");
 }
 
-$uid = Profile::getThemeUid();
+$uid = defaults($_REQUEST, 'puid', 0);
 
 $s_colorset = Config::get('duepuntozero', 'colorset');
 $colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
 
-if (!x($colorset)) {
+if (empty($colorset)) {
        $colorset = $s_colorset;
 }
 
+$setcss = '';
+
 if ($colorset) {
        if ($colorset == 'greenzero') {
                $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
@@ -27,7 +29,7 @@ if ($colorset) {
        if ($colorset == 'purplezero') {
                $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
        }
-       
+
        if ($colorset == 'easterbunny') {
                $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
        }