diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index 052fa3b0a1..915282c24e 100755 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -73,8 +73,8 @@ if (!empty($_SESSION['toolgroup'])) { $group_properties = GroupManager :: get_group_properties($session_toolgroup); $interbreadcrumb[] = array("url"=>"../group/group.php", "name" => get_lang('Groups')); $interbreadcrumb[] = array("url"=>"../group/group_space.php?gidReq=".$session_toolgroup, "name"=> get_lang('GroupSpace').' ('.$group_properties['name'].')'); - $interbreadcrumb[] = array("url"=>"viewforum.php?forum=".Security::remove_XSS($_GET['forum'])."&gidReq=".$session_toolgroup."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => prepare4display($current_forum['forum_title'])); - $interbreadcrumb[] = array("url"=>"viewthread.php?forum=".Security::remove_XSS($_GET['forum'])."&gradebook=".$gradebook."&thread=".Security::remove_XSS($_GET['thread']),"name" => prepare4display($current_thread['thread_title'])); + $interbreadcrumb[] = array("url"=>"viewforum.php?forum=".Security::remove_XSS($_GET['forum'])."&gidReq=".$session_toolgroup."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => Security::remove_XSS($current_forum['forum_title'])); + $interbreadcrumb[] = array("url"=>"viewthread.php?forum=".Security::remove_XSS($_GET['forum'])."&gradebook=".$gradebook."&thread=".Security::remove_XSS($_GET['thread']),"name" => Security::remove_XSS($current_thread['thread_title'])); Display :: display_header(''); api_display_tool_title($nameTools); @@ -87,8 +87,8 @@ if (!empty($_SESSION['toolgroup'])) { require_once api_get_path(INCLUDE_PATH).'reduced_header.inc.php'; } else { $interbreadcrumb[]=array("url" => "index.php?gradebook=$gradebook&search=".Security::remove_XSS(urlencode($my_search)),"name" => $nameTools); - $interbreadcrumb[]=array("url" => "viewforumcategory.php?forumcategory=".$current_forum_category['cat_id']."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => prepare4display($current_forum_category['cat_title'])); - $interbreadcrumb[]=array("url" => "viewforum.php?forum=".Security::remove_XSS($_GET['forum'])."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => prepare4display($current_forum['forum_title'])); + $interbreadcrumb[]=array("url" => "viewforumcategory.php?forumcategory=".$current_forum_category['cat_id']."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => Security::remove_XSS($current_forum_category['cat_title'])); + $interbreadcrumb[]=array("url" => "viewforum.php?forum=".Security::remove_XSS($_GET['forum'])."&origin=".$origin."&search=".Security::remove_XSS(urlencode($my_search)),"name" => Security::remove_XSS($current_forum['forum_title'])); $message = isset($message) ? $message : ''; // the last element of the breadcrumb navigation is already set in interbreadcrumb, so give empty string Display :: display_header(''); diff --git a/main/forum/viewthread_flat.inc.php b/main/forum/viewthread_flat.inc.php index 162888a480..b92891eb66 100755 --- a/main/forum/viewthread_flat.inc.php +++ b/main/forum/viewthread_flat.inc.php @@ -1,7 +1,8 @@ UI Improvements + lots of bugfixes * @package chamilo.forum */ //delete attachment file @@ -14,7 +15,7 @@ if (isset($current_thread['thread_id'])){ $rows=get_posts($current_thread['thread_id']); $increment=0; foreach ($rows as $row) { - echo "
".prepare4display(Security::remove_XSS($row['post_title'], STUDENT))." | "; + echo "".prepare4display($row['post_title'])." | "; echo ""; // The post message echo "
"; + echo " | |
"; if ($post['user_id']=='0') { $name=$post['poster_name']; } else { @@ -108,13 +106,13 @@ foreach ($rows as $post) { $post_image.=icon('../img/forumnotification.gif',get_lang('YouWillBeNotified')); } // The post title - echo "\t\t | ".prepare4display(Security::remove_XSS($post['post_title'], STUDENT))." | "; - echo "\t".prepare4display($post['post_title'])." | "; + echo ""; // The post message - echo "\t
"; +echo " | |
"; if ($rows[$display_post_id]['user_id']=='0') { $name=prepare4display($rows[$display_post_id]['poster_name']); } else { @@ -278,13 +264,13 @@ if ($rows[$display_post_id]['post_notification']=='1' AND $rows[$display_post_id $post_image.=icon('../img/forumnotification.gif',get_lang('YouWillBeNotified')); } // The post title -echo "\t\t | ".prepare4display(Security::remove_XSS($rows[$display_post_id]['post_title'], STUDENT))." | "; -echo "\t".prepare4display($rows[$display_post_id]['post_title'])." | "; +echo ""; // The post message -echo "\t