Re: Forum Reply Error $_POST["thread_sort_mode"]
Good day! My small patch ^) May be it work:
kido:/var/www/lan# diff -u ./tiki-view_forum_thread.php.orig ./tiki-view_forum_thread.php
./tiki-view_forum_thread.php.orig 2009-10-27 16:54:47.000000000 +0300 +++ ./tiki-view_forum_thread.php 2010-04-07 14:19:03.824307680 +0400
@@ -70,6 +70,8 @@
} else {
$quote = 0;
}
$smarty->assign('quote', $quote);
$comments_parentId = $_REQUEST%22comments_parentId%22;
if $_REQUEST%22openpost%22 {
@@ -213,8 +215,24 @@
//print_r($thread_info);
$smarty->assign_by_ref('thread_info', $thread_info);
$comments_per_page = $forum_info'commentsPerPage';
$thread_sort_mode = $forum_info'threadOrdering';
+ +if (isset($_REQUEST%22thread_sort_mode%22) && $_REQUEST%22thread_sort_mode%22) { + $thread_sort_mode = $_REQUEST%22thread_sort_mode%22; +} + +$thread_style = $forum_info'threadStyle';
+ +if (isset($_REQUEST%22thread_style%22) && $_REQUEST%22thread_style%22) { + $thread_style = $_REQUEST%22thread_style%22; +} + $comments_vars = array(
'forumId'
);