diff --git a/main/messages/inbox.php b/main/messages/inbox.php index fd4cb5db2c..be7cb1d725 100755 --- a/main/messages/inbox.php +++ b/main/messages/inbox.php @@ -129,7 +129,8 @@ if (isset($_GET['f']) && $_GET['f'] == 'social' || api_get_setting('allow_social //LEFT CONTENT if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu('messages'); + $social_avatar_block = SocialManager::show_social_avatar_block('messages'); + $social_menu_block = SocialManager::show_social_menu('messages'); } //Right content @@ -165,7 +166,8 @@ if (api_get_setting('allow_social_tool') == 'true') { $tpl = new Template(null); if (api_get_setting('allow_social_tool') == 'true') { - $tpl->assign('social_left_content', $social_left_content); + $tpl->assign('social_avatar_block', $social_avatar_block); + $tpl->assign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('layout/social_layout.tpl'); $tpl->display($social_layout); diff --git a/main/messages/new_message.php b/main/messages/new_message.php index 0b6b017529..1de5fd1202 100755 --- a/main/messages/new_message.php +++ b/main/messages/new_message.php @@ -305,7 +305,8 @@ if ($group_id != 0) { // LEFT COLUMN $social_left_content = null; if (api_get_setting('allow_social_tool') == 'true') { - $social_left_content = SocialManager::show_social_menu('messages'); + $social_avatar_block = SocialManager::show_social_avatar_block('messages'); + $social_menu_block = SocialManager::show_social_menu('messages'); $social_right_content .= '