Browse Source

Vier: Avoid an error when calling the admin settings of "vier" when "vier" is not activated.

pull/1939/head
Michael Vogel 6 years ago
parent
commit
607817d1b3
  1. 1
      view/templates/theme_admin_settings.tpl
  2. 7
      view/theme/vier/config.php

1
view/templates/theme_admin_settings.tpl

@ -0,0 +1 @@
{{* Dummy file to avoid errors when installing themes *}}

7
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');

Loading…
Cancel
Save