From: tommy tomson Date: Thu, 26 Apr 2012 19:07:46 +0000 (+0200) Subject: diabook-themes: small-fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=328568943e3b6f3157db71a6e8561cb22c363b03;p=friendica.git diabook-themes: small-fix --- diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index 073e270ef9..c45db9884d 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -14,12 +14,17 @@ $a->page['htmlhead'] .= sprintf('', $diabook_version); //change css on network and profilepages $cssFile = null; + $resolution=false; $resolution = get_pconfig(local_user(), "diabook", "resolution"); if ($resolution===false) $resolution="normal"; + $color = false; -$color = get_pconfig(local_user(), "diabook", "color"); +$site_color = get_config("diabook", "color" ); +if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");} +if ($color===false) $color=$site_color; if ($color===false) $color="diabook"; + if ($color=="diabook") $color_path = "/"; if ($color=="aerith") $color_path = "/diabook-aerith/"; if ($color=="blue") $color_path = "/diabook-blue/";