Minor - fix social menu BT#14929

pull/2729/head
Julio Montoya 7 years ago
parent d32d8649d5
commit b9b48e49e1
  1. 8
      main/social/home.php
  2. 2
      main/social/myfiles.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;

@ -17,6 +17,8 @@ if (api_get_setting('allow_my_files') === 'false') {
api_not_allowed(true);
}
$this_section = SECTION_SOCIAL;
$htmlHeadXtra[] = '
<script>
function denied_friend (element_input) {

Loading…
Cancel
Save