Allow post subscriptions see BT#15173

pull/3063/head
Julio 7 years ago
parent 2452449d8c
commit 2a4e39e0f4
  1. 8
      main/forum/viewforum.php

@ -48,10 +48,6 @@ $groupId = api_get_group_id();
$courseId = api_get_course_int_id();
$groupInfo = GroupManager::get_group_properties($groupId);
$isTutor = GroupManager::is_tutor_of_group($userId, $groupInfo, $courseId);
$hideNotifications = api_get_course_setting('hide_forum_notifications');
$hideNotifications = $hideNotifications == 1;
$isAllowedToEdit = api_is_allowed_to_edit(false, true) && api_is_allowed_to_session_edit(false, true);
/* MAIN DISPLAY SECTION */
@ -438,7 +434,7 @@ if (is_array($threads)) {
}
$newPost = '';
if ($hideNotifications == false && is_array($my_whatsnew_post_info) && !empty($my_whatsnew_post_info)) {
if (is_array($my_whatsnew_post_info) && !empty($my_whatsnew_post_info)) {
$newPost = ' '.Display::return_icon('alert.png', get_lang('Forum'), null, ICON_SIZE_SMALL);
}
@ -641,7 +637,7 @@ if (is_array($threads)) {
}
}
$icon_liststd = 'user.png';
if (!api_is_anonymous() && api_is_allowed_to_session_edit(false, true) && $hideNotifications == false) {
if (!api_is_anonymous() && api_is_allowed_to_session_edit(false, true)) {
$iconsEdit .= '<a href="'.api_get_self().'?'.$cidreq.'&forum='
.$my_forum
."&action=notify&content=thread&id={$row['thread_id']}"

Loading…
Cancel
Save