From b9b48e49e1f3699228473e48c66b6acd1e5a5ab2 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 8 Oct 2018 08:43:49 +0200 Subject: [PATCH] Minor - fix social menu BT#14929 --- main/social/home.php | 8 ++++---- main/social/myfiles.php | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/main/social/home.php b/main/social/home.php index 34221bca64..d7ccb2ae50 100755 --- a/main/social/home.php +++ b/main/social/home.php @@ -13,15 +13,15 @@ $cidReset = true; require_once __DIR__.'/../inc/global.inc.php'; +api_block_anonymous_users(); + $user_id = api_get_user_id(); $show_full_profile = true; // social tab -$this_section = SECTION_SOCIAL; Session::erase('this_section'); +$this_section = SECTION_SOCIAL; -api_block_anonymous_users(); - -if (api_get_setting('allow_social_tool') != 'true') { +if (api_get_setting('allow_social_tool') !== 'true') { $url = api_get_path(WEB_CODE_PATH).'auth/profile.php'; header('Location: '.$url); exit; diff --git a/main/social/myfiles.php b/main/social/myfiles.php index 82a538c8e4..252a0b5a24 100755 --- a/main/social/myfiles.php +++ b/main/social/myfiles.php @@ -17,6 +17,8 @@ if (api_get_setting('allow_my_files') === 'false') { api_not_allowed(true); } +$this_section = SECTION_SOCIAL; + $htmlHeadXtra[] = '