mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Search Fixes. Forum search upgraded to v2.x spec.
This commit is contained in:
@@ -829,8 +829,16 @@ class e107ForumThread
|
||||
$postInfo = $forum->postGet($postId,'post');
|
||||
$postNum = $forum->postGetPostNum($postInfo['post_thread'], $postId);
|
||||
$postPage = ceil($postNum / $forum->prefs->get('postspage'));
|
||||
$url = e107::getUrl()->create('forum/thread/view', array('id' => $postInfo['post_thread'], 'name' => $postInfo['thread_name'], 'page' => $postPage), 'full=1&encode=0');
|
||||
header('location: '.$url);
|
||||
|
||||
$url = e107::url('forum', 'topic', $postInfo, array(
|
||||
'query' => array(
|
||||
'p' => $postPage, // proper page number
|
||||
),
|
||||
'fragment' => 'post-' . $postId, // jump page to post
|
||||
'mode'=>'full'
|
||||
));
|
||||
|
||||
e107::redirect($url);
|
||||
exit;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user