From 607817d1b3c3347731cf11cf8bf99838a01f4980 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 5 Oct 2015 17:38:57 +0200 Subject: [PATCH] Vier: Avoid an error when calling the admin settings of "vier" when "vier" is not activated. --- view/templates/theme_admin_settings.tpl | 1 + view/theme/vier/config.php | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 view/templates/theme_admin_settings.tpl 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'); -- 2.39.5