[svn r12310] bugfix: Forum: locked forum show link to add thread

http://www.dokeos.com/forum/viewtopic.php?t=9031
skala
Patrick Cool 18 years ago
parent dccefa2a8c
commit d06a18fa6d
  1. 7
      main/forum/viewforum.php

@ -194,7 +194,14 @@ if (isset($message))
// 3. a visitor is here and new threads AND allowed AND anonymous posts are allowed // 3. a visitor is here and new threads AND allowed AND anonymous posts are allowed
if (api_is_allowed_to_edit() 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 (api_is_allowed_to_edit() 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)
{
echo '<a href="newthread.php?'.api_get_cidreq().'&forum='.$_GET['forum'].$origin_string.'">'.Display::return_icon('forumthread_new.gif').' '.get_lang('NewTopic').'</a>'; echo '<a href="newthread.php?'.api_get_cidreq().'&forum='.$_GET['forum'].$origin_string.'">'.Display::return_icon('forumthread_new.gif').' '.get_lang('NewTopic').'</a>';
}
else
{
echo get_lang('ForumLocked');
}
} }
/* /*

Loading…
Cancel
Save