Use current user id

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 78318312ac
commit 54bd5a5635
  1. 2
      main/messages/inbox.php
  2. 2
      main/messages/new_message.php
  3. 2
      main/messages/outbox.php
  4. 2
      main/messages/view_message.php

@ -174,7 +174,7 @@ if (!isset($_GET['del_msg'])) {
$tpl = new Template(null); $tpl = new Template(null);
// Block Social Avatar // Block Social Avatar
SocialManager::setSocialUserBlock($tpl, $user_id, 'messages'); SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'messages');
if (api_get_setting('allow_social_tool') == 'true') { if (api_get_setting('allow_social_tool') == 'true') {
$tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_menu_block', $social_menu_block);
$tpl->assign('social_right_content', $social_right_content); $tpl->assign('social_right_content', $social_right_content);

@ -382,7 +382,7 @@ if (api_get_setting('allow_social_tool') === 'true') {
$tpl = new Template(get_lang('ComposeMessage')); $tpl = new Template(get_lang('ComposeMessage'));
// Block Social Avatar // Block Social Avatar
SocialManager::setSocialUserBlock($tpl, $user_id, 'messages'); SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'messages');
if (api_get_setting('allow_social_tool') === 'true') { if (api_get_setting('allow_social_tool') === 'true') {
$tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_menu_block', $social_menu_block);

@ -141,7 +141,7 @@ if ($action == 'delete') {
$tpl = new Template(get_lang('ComposeMessage')); $tpl = new Template(get_lang('ComposeMessage'));
// Block Social Avatar // Block Social Avatar
SocialManager::setSocialUserBlock($tpl, $user_id, 'messages'); SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'messages');
if (api_get_setting('allow_social_tool') == 'true') { if (api_get_setting('allow_social_tool') == 'true') {
$tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_menu_block', $social_menu_block);

@ -70,7 +70,7 @@ if (!empty($message)) {
} }
$tpl = new Template(get_lang('View')); $tpl = new Template(get_lang('View'));
// Block Social Avatar // Block Social Avatar
SocialManager::setSocialUserBlock($tpl, $user_id, $show_menu); SocialManager::setSocialUserBlock($tpl, api_get_user_id(), $show_menu);
if (api_get_setting('allow_social_tool') === 'true') { if (api_get_setting('allow_social_tool') === 'true') {
$tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_menu_block', $social_menu_block);

Loading…
Cancel
Save