diff --git a/view/templates/theme_admin_settings.tpl b/view/templates/theme_admin_settings.tpl new file mode 100644 index 0000000000..fa04612b23 --- /dev/null +++ b/view/templates/theme_admin_settings.tpl @@ -0,0 +1 @@ +{{* Dummy file to avoid errors when installing themes *}} diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 9f4fb0f93a..7c51b4ec95 100644 --- a/view/theme/vier/config.php +++ b/view/theme/vier/config.php @@ -9,6 +9,9 @@ function theme_content(&$a){ if(!local_user()) return; + if (!function_exists('get_vier_config')) + return; + $style = get_pconfig(local_user(), 'vier', 'style'); if ($style == "") @@ -45,6 +48,10 @@ function theme_post(&$a){ function theme_admin(&$a){ + + if (!function_exists('get_vier_config')) + return; + $style = get_config('vier', 'style'); $helperlist = get_config('vier', 'helperlist');