|
@@ -3,9 +3,6 @@
|
|
|
|
|
|
* @package chamilo.messages
|
|
|
*/
|
|
|
-
|
|
|
- * Code
|
|
|
- */
|
|
|
$language_file = array('registration','messages','userInfo');
|
|
|
$cidReset= true;
|
|
|
require_once '../inc/global.inc.php';
|
|
@@ -14,8 +11,6 @@ if (api_get_setting('allow_message_tool')!='true') {
|
|
|
api_not_allowed();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
if (isset($_REQUEST['f']) && $_REQUEST['f'] == 'social') {
|
|
|
$this_section = SECTION_SOCIAL;
|
|
|
$interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social'));
|
|
@@ -37,8 +32,6 @@ if (isset($_GET['f']) && $_GET['f']=='social') {
|
|
|
$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php">'.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).'</a>';
|
|
|
}
|
|
|
if (api_get_setting('allow_message_tool') == 'true') {
|
|
|
-
|
|
|
-
|
|
|
$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/new_message.php">'.Display::return_icon('message_new.png',get_lang('ComposeMessage')).'</a>';
|
|
|
$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/inbox.php">'.Display::return_icon('inbox.png',get_lang('Inbox')).'</a>';
|
|
|
$social_right_content .= '<a href="'.api_get_path(WEB_PATH).'main/messages/outbox.php">'.Display::return_icon('outbox.png',get_lang('Outbox')).'</a>';
|
|
@@ -76,8 +69,6 @@ if (!empty($message)) {
|
|
|
} else {
|
|
|
api_not_allowed();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
$tpl = new Template(get_lang('View'));
|
|
|
if (api_get_setting('allow_social_tool') == 'true') {
|
|
|
$tpl->assign('social_left_content', $social_left_content);
|
|
@@ -87,8 +78,6 @@ if (api_get_setting('allow_social_tool') == 'true') {
|
|
|
} else {
|
|
|
$content = $social_right_content;
|
|
|
|
|
|
- $tpl->assign('actions', $actions);
|
|
|
- $tpl->assign('message', $message);
|
|
|
$tpl->assign('content', $content);
|
|
|
$tpl->display_one_col_template();
|
|
|
-}
|
|
|
+}
|