From 6452057d56a8186de72447e2ef042db58ef4fafd Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 5 May 2011 17:41:08 +0200 Subject: [PATCH] Fixing message tool if social network is not enabled --- index.php | 56 ++++++++++++++++++---------------- main/auth/profile.php | 10 +----- main/messages/inbox.php | 37 ++++++++++------------ main/messages/new_message.php | 20 ++++++------ main/messages/outbox.php | 14 ++++++--- main/messages/view_message.php | 20 +++++++----- user_portal.php | 17 ++++++----- 7 files changed, 88 insertions(+), 86 deletions(-) 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 ''; + $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 .= '
'; }