]> git.mxchange.org Git - friendica.git/commitdiff
Vier: The setting for defining the default style is now working
authorMichael Vogel <icarus@dabo.de>
Sun, 15 Jun 2014 22:00:05 +0000 (00:00 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 15 Jun 2014 22:00:05 +0000 (00:00 +0200)
view/theme/vier/config.php
view/theme/vier/theme.php

index 054b5a2b1f0708a81c9e985772e5c10c22eff356..8736dfe840fe76429dc7154dbab1a5acc2091ac1 100644 (file)
@@ -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);
 }
 
index 8d9a0c5c2276f7f9fe2fb0c5a344fd0ad19d9923..1d2972b623530e2493bf4beb7010454e1d21639e 100644 (file)
@@ -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'] .= '<link rel="stylesheet" href="view/theme/vier/flat.css" type="text/css" media="screen"/>'."\n";
 else if ($style == "netcolour")