From: Hans Meine Date: Tue, 16 Oct 2012 11:44:27 +0000 (+0200) Subject: diabook: use proper defaults in popup sidebar config X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba503b9927ea7b11f96c6b157dcecaf6df89122f;p=friendica.git diabook: use proper defaults in popup sidebar config --- diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index c85031ccc5..c993751b15 100644 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -616,16 +616,16 @@ if ($color=="dark") $color_path = "/diabook-dark/"; } //end twitter if($ccCookie != "10") { - $close_pages = get_pconfig(local_user(), 'diabook', 'close_pages' ); - $close_mapquery = get_pconfig(local_user(), 'diabook', 'close_mapquery' ); - $close_profiles = get_pconfig(local_user(), 'diabook', 'close_profiles' ); - $close_helpers = get_pconfig(local_user(), 'diabook', 'close_helpers' ); - $close_services = get_pconfig(local_user(), 'diabook', 'close_services' ); - $close_friends = get_pconfig(local_user(), 'diabook', 'close_friends' ); - $close_twitter = get_pconfig(local_user(), 'diabook', 'close_twitter' ); - $close_lastusers = get_pconfig(local_user(), 'diabook', 'close_lastusers' ); - $close_lastphotos = get_pconfig(local_user(), 'diabook', 'close_lastphotos' ); - $close_lastlikes = get_pconfig(local_user(), 'diabook', 'close_lastlikes' ); + $close_pages = get_diabook_config( "close_pages", 1 ); + $close_profiles = get_diabook_config( "close_profiles", 0 ); + $close_helpers = get_diabook_config( "close_helpers", 0 ); + $close_services = get_diabook_config( "close_services", 0 ); + $close_friends = get_diabook_config( "close_friends", 0 ); + $close_lastusers = get_diabook_config( "close_lastusers", 0 ); + $close_lastphotos = get_diabook_config( "close_lastphotos", 0 ); + $close_lastlikes = get_diabook_config( "close_lastlikes", 0 ); + $close_twitter = get_diabook_config( "close_twitter", 1 ); + $close_mapquery = get_diabook_config( "close_mapquery", 1 ); $close_or_not = array('1'=>t("don't show"), '0'=>t("show"),); $boxsettings['title'] = Array("", t('Show/hide boxes at right-hand column:'), "", ""); $aside['$boxsettings'] = $boxsettings;