mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 05:41:58 +02:00
Issue #4206 - news category menu {active} shortcode typo fix.
This commit is contained in:
@@ -1099,18 +1099,18 @@ class e_news_category_tree extends e_front_tree_model
|
||||
if(e_PAGE == 'news.php')
|
||||
{
|
||||
$tmp = explode('.', e_QUERY);
|
||||
if(vartrue($tmp[1])) $active = $tmp[1];
|
||||
if(!empty($tmp[1])) $active = $tmp[1];
|
||||
}
|
||||
$bullet = defined('BULLET') ? THEME_ABS.'images/'.BULLET : THEME_ABS.'images/bullet2.gif';
|
||||
$obj = new e_vars(array('bullet' => $bullet));
|
||||
$obj = new e_vars(array('BULLET' => $bullet));
|
||||
|
||||
/** @var e_tree_model $cat */
|
||||
foreach ($this->getTree() as $cat)
|
||||
{
|
||||
$obj->active = '';
|
||||
$obj->ACTIVE = '';
|
||||
if($active && $active == $cat->getId())
|
||||
{
|
||||
$obj->active = ' active';
|
||||
$obj->ACTIVE = ' active';
|
||||
}
|
||||
|
||||
$ret[] = $cat->toHTML($template['item'], $parsesc, $obj);
|
||||
|
Reference in New Issue
Block a user