1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +02:00

Forum SEF Url fixes

This commit is contained in:
Cameron
2016-05-24 12:39:45 -07:00
parent 989fc5ccd1
commit 0b96543a1a
4 changed files with 25 additions and 21 deletions

View File

@@ -255,14 +255,13 @@ else
$pages = false;
}
if ($pages)
{
if(strpos($FORUM_VIEW_START, 'THREADPAGES') !== false || strpos($FORUM_VIEW_END, 'THREADPAGES') !== false)
{
//if(!$page) $page = 1;
$urlparms = $forumInfo;
$urlparms['page'] = '[FROM]';
$url = rawurlencode(e107::getUrl()->create('forum/forum/view', $urlparms));
$url = e107::url('forum','forum',$forumInfo, array('query'=>array('p'=>'[FROM]')));
$parms = "total={$pages}&type=page&current={$page}&url=".$url."&caption=off";
$fVars->THREADPAGES = $tp->parseTemplate("{NEXTPREV={$parms}}");
unset($urlparms);