mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
fixes #85 - Gallery Next/Previous Links 404
This commit is contained in:
parent
1a320cecad
commit
dbca10cb1c
@ -134,7 +134,7 @@ class gallery_shortcodes extends e_shortcode
|
||||
function sc_gallery_nextprev($parm='')
|
||||
{
|
||||
// we passs both fields, the router will convert one of them to 'cat' variable, based on the current URL config
|
||||
$url = 'url::gallery/index/list?media_cat_category='.$this->curCat.'--AMP--media_cat_title='.$this->var['media_cat_title'].'--AMP--frm=--FROM--::full=1';
|
||||
$url = 'route::gallery/index/list?media_cat_category='.$this->curCat.'--AMP--media_cat_sef='.$this->var['media_cat_sef'].'--AMP--frm=--FROM--::full=1';
|
||||
$parm = 'total='.$this->total.'&amount='.$this->amount.'¤t='.$this->from.'&url='.rawurlencode($url); // .'&url='.$url;
|
||||
$text .= e107::getParser()->parseTemplate("{NEXTPREV=".$parm."}");
|
||||
return $text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user