1
0
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:
Cameron
2020-07-03 13:49:12 -07:00
parent 07f92d92cc
commit 23f6a52f08
4 changed files with 101 additions and 90 deletions

View File

@@ -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);