]> git.mxchange.org Git - friendica.git/commitdiff
Vier: Avoid an error when calling the admin settings of "vier" when "vier" is not...
authorMichael Vogel <icarus@dabo.de>
Mon, 5 Oct 2015 15:38:57 +0000 (17:38 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 5 Oct 2015 15:38:57 +0000 (17:38 +0200)
view/templates/theme_admin_settings.tpl [new file with mode: 0644]
view/theme/vier/config.php

diff --git a/view/templates/theme_admin_settings.tpl b/view/templates/theme_admin_settings.tpl
new file mode 100644 (file)
index 0000000..fa04612
--- /dev/null
@@ -0,0 +1 @@
+{{* Dummy file to avoid errors when installing themes *}}
index 9f4fb0f93a1cc15a7e59b4a1f0412057779001d9..7c51b4ec95be31c7af31825fc362b18ced52104c 100644 (file)
@@ -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');