Skip to content

Commit

Permalink
fix mod articles category overwrite issue
Browse files Browse the repository at this point in the history
  • Loading branch information
siddik-web committed Dec 14, 2022
1 parent 7d385f1 commit 7e8afef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

defined('_JEXEC') or die;

use Joomla\CMS\Router\Router;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Router\Route;

foreach ($list as $item) : ?>
<li <?php if ($_SERVER['PHP_SELF'] == Router::_(JVERSION < 4 ? ContentHelperRoute::getCategoryRoute($item->id) : Joomla\Component\Content\Site\Helper\RouteHelper::getCategoryRoute($item->id))) echo ' class="active"';?>>
<a href="<?php echo Router::_(JVERSION < 4 ? ContentHelperRoute::getCategoryRoute($item->id) : Joomla\Component\Content\Site\Helper\RouteHelper::getCategoryRoute($item->id)); ?>">
<li <?php if ($_SERVER['PHP_SELF'] == Route::_(JVERSION < 4 ? ContentHelperRoute::getCategoryRoute($item->id) : Joomla\Component\Content\Site\Helper\RouteHelper::getCategoryRoute($item->id))) echo ' class="active"';?>>
<a href="<?php echo Route::_(JVERSION < 4 ? ContentHelperRoute::getCategoryRoute($item->id) : Joomla\Component\Content\Site\Helper\RouteHelper::getCategoryRoute($item->id)); ?>">
<?php echo $item->title;?>
<?php if ($params->get('numitems')) : ?>
(<?php echo $item->numitems; ?>)
Expand Down

0 comments on commit 7e8afef

Please sign in to comment.