mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
fixes #3087 Missing forum id prevented pagination
This commit is contained in:
@@ -270,11 +270,14 @@ if ($pages)
|
|||||||
{
|
{
|
||||||
if(strpos($FORUM_VIEW_START, 'THREADPAGES') !== false || strpos($FORUM_VIEW_END, 'THREADPAGES') !== false)
|
if(strpos($FORUM_VIEW_START, 'THREADPAGES') !== false || strpos($FORUM_VIEW_END, 'THREADPAGES') !== false)
|
||||||
{
|
{
|
||||||
$url = e107::url('forum','forum',$forumInfo, array('query'=>array('p'=>'[FROM]')));
|
// issue #3087 url need to be decoded first (because the [FROM] get's encoded in url())
|
||||||
/*--
|
// and to encode the full url to not loose the id param when being used in the $forumSCvars['parms']
|
||||||
|
$url = rawurlencode(rawurldecode(e107::url('forum','forum',$forumInfo, array('query'=>array('p'=>'[FROM]')))));
|
||||||
|
|
||||||
|
/*--
|
||||||
$parms = "total={$pages}&type=page¤t={$page}&url=".$url."&caption=off";
|
$parms = "total={$pages}&type=page¤t={$page}&url=".$url."&caption=off";
|
||||||
$fVars->THREADPAGES = $tp->parseTemplate("{NEXTPREV={$parms}}");
|
$fVars->THREADPAGES = $tp->parseTemplate("{NEXTPREV={$parms}}");
|
||||||
--*/
|
--*/
|
||||||
$forumSCvars['parms'] = "total={$pages}&type=page¤t={$page}&url=".$url."&caption=off";
|
$forumSCvars['parms'] = "total={$pages}&type=page¤t={$page}&url=".$url."&caption=off";
|
||||||
//-- ?????????? unset $ulrparms????
|
//-- ?????????? unset $ulrparms????
|
||||||
unset($urlparms);
|
unset($urlparms);
|
||||||
|
Reference in New Issue
Block a user