From 8bce8b0bd2b350e5e49ae66f86840b96f0356bc5 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 16 Jun 2014 00:00:05 +0200 Subject: [PATCH] Vier: The setting for defining the default style is now working --- view/theme/vier/config.php | 3 +++ view/theme/vier/theme.php | 4 ++++ 2 files changed, 7 insertions(+) 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") -- 2.39.5