From df20a4766ff919cc328057de0add70f9a91e42dd Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Mon, 7 Mar 2011 20:48:25 +0200 Subject: [PATCH] Task #1297 - "Forums" tool: Removing prepare4display() calls from places where they should not be applied. --- main/forum/forumfunction.inc.php | 4 ++-- main/forum/index.php | 2 +- main/forum/viewforumcategory.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index bba1b853f0..cbefce9dba 100755 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -2020,8 +2020,8 @@ function show_add_post_form($action = '', $id = '', $form_values = '') { if (!empty($form_values)) { $defaults['post_title'] = prepare4display($form_values['post_title']); $defaults['post_text'] = prepare4display($form_values['post_text']); - $defaults['post_notification'] = prepare4display($form_values['post_notification']); - $defaults['thread_sticky'] = prepare4display($form_values['thread_sticky']); + $defaults['post_notification'] = strval(intval($form_values['post_notification'])); + $defaults['thread_sticky'] = strval(intval($form_values['thread_sticky'])); } // If we are quoting a message we have to retrieve the information of the post we are quoting so that diff --git a/main/forum/index.php b/main/forum/index.php index c073eb9b81..efa0a230e2 100755 --- a/main/forum/index.php +++ b/main/forum/index.php @@ -362,7 +362,7 @@ if (is_array($forum_categories_list)) { } $forum['forum_of_group'] == 0 ? $groupid = '' : $groupid = $forum['forum_of_group']; - echo ''; + echo ''; //Forum title echo prepare4display($forum['forum_title']).$session_displayed.''.$forum_title_group_addition.'
'; diff --git a/main/forum/viewforumcategory.php b/main/forum/viewforumcategory.php index c2f91d45a0..8efdb00682 100755 --- a/main/forum/viewforumcategory.php +++ b/main/forum/viewforumcategory.php @@ -193,7 +193,7 @@ if ($action_forums!='add') { echo ''; echo ""; - echo ''.prepare4display($forum_category['cat_title']).$session_displayed.''. $session_img .'
'; + echo ''.prepare4display($forum_category['cat_title']).$session_displayed.''. $session_img .'
'; echo ''.prepare4display($forum_category['cat_comment']).'';