diff --git a/html/inc/forum.inc b/html/inc/forum.inc index f74065d58c..83dc25cb02 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -393,34 +393,38 @@ function end_forum_table() { /** * Output the forum/thread title. **/ -function show_forum_title($forum=NULL, $thread=NULL) { - start_table_noborder(); - echo "
\n"; if ($forum) { diff --git a/html/user/forum_index.php b/html/user/forum_index.php index d2f6088719..e0905607f8 100644 --- a/html/user/forum_index.php +++ b/html/user/forum_index.php @@ -36,7 +36,7 @@ echo "
"; -show_forum_title(NULL, NULL, false); +show_forum_title(NULL, NULL); start_forum_table(array(tr(FORUM_TOPIC), tr(FORUM_THREADS), tr(FORUM_POSTS), tr(FORUM_LAST_POST))); $categories = $mainFactory->getCategories(); diff --git a/html/user/forum_thread.php b/html/user/forum_thread.php index 1e2adbba6c..419b6cc5fb 100644 --- a/html/user/forum_thread.php +++ b/html/user/forum_thread.php @@ -42,17 +42,17 @@ $title = cleanup_title($thread->getTitle()); if (!$sort_style) { // get the sorting style from the user or a cookie if ($logged_in_user){ - $sort_style = $logged_in_user->getThreadSortStyle(); + $sort_style = $logged_in_user->getThreadSortStyle(); } else { list($forum_style, $sort_style)=explode("|",$_COOKIE['sorting']); } } else { if ($logged_in_user){ - $logged_in_user->setThreadSortStyle($sort_style); + $logged_in_user->setThreadSortStyle($sort_style); } else { list($forum_style,$old_style)=explode("|",$_COOKIE['sorting']); setcookie('sorting', implode("|",array($forum_style,$sort_style)), time()+3600*24*365); - } + } } @@ -72,57 +72,57 @@ show_forum_title($forum, $thread); if ($thread->getType()!=0 && $thread->getStatus()==0){ $thread_owner = $thread->getOwner(); if ($logged_in_user){ - if ($thread_owner->getID() == $logged_in_user->getID()){ - if ($thread->getPostCount()!=0) { - // Show a "this question has been answered" to the author - echo "