]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/config.php
Merge branch 'rewrites/dbm_is_result' into develop
[friendica.git] / view / theme / vier / config.php
index 9f4fb0f93a1cc15a7e59b4a1f0412057779001d9..0f07ff9a1eac023b157c8088932d1e9d6eefcda3 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');
@@ -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),