1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-20 19:42:09 -08:00
parent 0f4b3d29cb
commit 9880a68d4b
10 changed files with 18 additions and 22 deletions

View File

@@ -216,8 +216,8 @@ class gallery_shortcodes extends e_shortcode
{
// we passs both fields, the router will convert one of them to 'cat' variable, based on the current URL config
$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 . '&current=' . $this->from . '&url=' . rawurlencode($url); // .'&url='.$url;
$text = e107::getParser()->parseTemplate("{NEXTPREV=" . $parm . "}");
$param = 'total=' . $this->total . '&amount=' . $this->amount . '&current=' . $this->from . '&url=' . rawurlencode($url); // .'&url='.$url;
$text = e107::getParser()->parseTemplate("{NEXTPREV=" . $param . "}");
return $text;
}