1
0
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:
Cameron
2016-02-01 20:29:46 -08:00
parent 9edb621366
commit d159763747
12 changed files with 260 additions and 172 deletions

View File

@@ -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;