From: Michael Vogel Date: Sun, 15 Jun 2014 22:00:05 +0000 (+0200) Subject: Vier: The setting for defining the default style is now working X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8bce8b0bd2b350e5e49ae66f86840b96f0356bc5;p=friendica.git Vier: The setting for defining the default style is now working --- diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 054b5a2b1f..8736dfe840 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -11,6 +11,9 @@ function theme_content(&$a){ $style = get_pconfig(local_user(), 'vier', 'style'); + if ($style == "") + $style = get_config('vier', 'style'); + return vier_form($a,$style); } diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 8d9a0c5c22..1d2972b623 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -16,6 +16,10 @@ $baseurl = $a->get_baseurl(); $a->theme_info = array(); $style = get_pconfig(local_user(), 'vier', 'style'); + +if ($style == "") + $style = get_config('vier', 'style'); + if ($style == "flat") $a->page['htmlhead'] .= ''."\n"; else if ($style == "netcolour")