X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Fconfig.php;h=0f07ff9a1eac023b157c8088932d1e9d6eefcda3;hb=dac1dbd3e963be0606d8bc29ad6b3085f1c83105;hp=9f4fb0f93a1cc15a7e59b4a1f0412057779001d9;hpb=d96a55e803420e3c9c4c57524e0a75cd88d37d45;p=friendica.git diff --git a/view/theme/vier/config.php b/view/theme/vier/config.php index 9f4fb0f93a..0f07ff9a1e 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'); @@ -82,7 +89,7 @@ function theme_admin_post(&$a){ } } - +/// @TODO $a is no longer used function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $show_services, $show_friends, $show_lastusers){ $styles = array( "plus"=>"Plus", @@ -98,7 +105,7 @@ function vier_form(&$a, $style, $show_pages, $show_profiles, $show_helpers, $sho $t = get_markup_template("theme_settings.tpl"); $o .= replace_macros($t, array( '$submit' => t('Submit'), - '$baseurl' => $a->get_baseurl(), + '$baseurl' => App::get_baseurl(), '$title' => t("Theme settings"), '$style' => array('vier_style',t ('Set style'),$style,'',$styles), '$show_pages' => array('vier_show_pages', t('Community Pages'), $show_pages, '', $show_or_not),