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 054b5a2b1..8736dfe84 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 8d9a0c5c2..1d2972b62 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")