diff --git a/index.php b/index.php index 71956fe843..f22f40a6ee 100755 --- a/index.php +++ b/index.php @@ -226,30 +226,31 @@ echo ''; echo ''; - - } echo '
'; $id_content_right = ''; //LEFT CONTENT if (api_get_setting('allow_social_tool') != 'true') { - $id_content_right = 'inbox'; - echo '
'; - echo ''; - echo '
'; + $id_content_right = 'inbox'; } else { require_once api_get_path(LIBRARY_PATH).'social.lib.php'; $id_content_right = 'social-content-right'; @@ -160,10 +157,8 @@ echo '
'; echo '
'; } - echo '
'; - - if (api_get_setting('allow_social_tool') == 'true') { - + echo '
'; + if (api_get_setting('allow_social_tool') == 'true') { echo ''; // @todo Add a platform setting to add the user image. -if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { +if (api_get_setting('allow_message_tool') == 'true') { require_once api_get_path(LIBRARY_PATH).'message.lib.php'; require_once api_get_path(LIBRARY_PATH).'social.lib.php'; @@ -583,19 +583,20 @@ if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_mes $profile_content .= '
'; $profile_content .= '
'; $profile_content .= '
'; }