From: Michael Vogel Date: Mon, 5 Oct 2015 15:38:57 +0000 (+0200) Subject: Vier: Avoid an error when calling the admin settings of "vier" when "vier" is not... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=607817d1b3c3347731cf11cf8bf99838a01f4980;p=friendica.git Vier: Avoid an error when calling the admin settings of "vier" when "vier" is not activated. --- 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');