1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-17 10:59:49 +01:00

Added 'limit' parm to {CHAPTER_MENUS}

This commit is contained in:
Cameron 2017-11-17 14:02:16 -08:00
parent 4bf1d4c97b
commit 2ae932362f

View File

@ -211,6 +211,12 @@ class page_shortcodes extends e_shortcode
$i = 0;
foreach($pageArray as $row)
{
if(!empty($parm['limit']) && $c > $parm['limit'])
{
break;
}
$row['cmenu_tab_active'] = ($c === (int) $active) ? true : false;
if(empty($parm['template']))