@ -77,7 +77,7 @@ if (!empty($groupId)) {
//Course
if (!api_is_allowed_to_edit(false, true) AND //is a student
(($current_forum_category & & $current_forum_category['visibility'] == 0) OR
$current_forum['visibility'] == 0 OR !$user_has_access_in_group)
$current_forum['visibility'] == 0 OR !$user_has_access_in_group)
) {
api_not_allowed();
}
@ -294,20 +294,20 @@ if (api_is_allowed_to_edit(false, true) OR
($current_forum['allow_new_threads'] == 1 AND isset($_user['user_id'])) OR
($current_forum['allow_new_threads'] == 1 AND !isset($_user['user_id']) AND $current_forum['allow_anonymous'] == 1)
) {
if ($current_forum['locked'] < > 1 AND $current_forum['locked'] < > 1) {
if (!api_is_anonymous()) {
if ($my_forum == strval(intval($my_forum))) {
echo '< a href = "'.$forumUrl.'newthread.php?'.api_get_cidreq().'&forum='.Security::remove_XSS($my_forum).$origin_string.'" > '.
if ($current_forum['locked'] < > 1 AND $current_forum['locked'] < > 1) {
if (!api_is_anonymous()) {
if ($my_forum == strval(intval($my_forum))) {
echo '< a href = "'.$forumUrl.'newthread.php?'.api_get_cidreq().'&forum='.Security::remove_XSS($my_forum).$origin_string.'" > '.
Display::return_icon('new_thread.png',get_lang('NewTopic'),'',ICON_SIZE_MEDIUM).'< / a > ';
} else {
$my_forum = strval(intval($my_forum));
echo '< a href = "'.$forumUrl.'newthread.php?'.api_get_cidreq().'&forum='.$my_forum.$origin_string.'" > '.
} else {
$my_forum = strval(intval($my_forum));
echo '< a href = "'.$forumUrl.'newthread.php?'.api_get_cidreq().'&forum='.$my_forum.$origin_string.'" > '.
Display::return_icon('new_thread.png',get_lang('NewTopic'),'',ICON_SIZE_MEDIUM).'< / a > ';
}
}
} else {
echo get_lang('ForumLocked');
}
}
}
} else {
echo get_lang('ForumLocked');
}
}
echo '< / div > ';
@ -354,7 +354,7 @@ if (is_array($threads)) {
!($row['thread_replies'] == '0' AND $row['visibility'] == '0')
) {
if ($counter % 2 == 0) {
$class = 'row_odd';
$class = 'row_odd';
} else {
$class = 'row_even';
}