diff --git a/src/administrator/components/com_weblinks/forms/weblink.xml b/src/administrator/components/com_weblinks/forms/weblink.xml index 42574b10a34..07123fefc11 100644 --- a/src/administrator/components/com_weblinks/forms/weblink.xml +++ b/src/administrator/components/com_weblinks/forms/weblink.xml @@ -263,9 +263,9 @@ diff --git a/src/modules/mod_weblinks/mod_weblinks.xml b/src/modules/mod_weblinks/mod_weblinks.xml index 2b730e97d70..e7fe725c6a2 100644 --- a/src/modules/mod_weblinks/mod_weblinks.xml +++ b/src/modules/mod_weblinks/mod_weblinks.xml @@ -146,17 +146,6 @@ - - - - -
diff --git a/src/modules/mod_weblinks/src/Helper/WeblinksHelper.php b/src/modules/mod_weblinks/src/Helper/WeblinksHelper.php index ff9f11a160c..4cbdab1621a 100644 --- a/src/modules/mod_weblinks/src/Helper/WeblinksHelper.php +++ b/src/modules/mod_weblinks/src/Helper/WeblinksHelper.php @@ -41,8 +41,8 @@ public static function getList($params, $app) ->createModel('Category', 'Site', ['ignore_request' => true]); // Set application parameters in model - $appParams = $app->getParams(); - $model->setState('params', $appParams); + $cParams = ComponentHelper::getParams('com_weblinks'); + $model->setState('params', $cParams); // Set the filters based on the module params $model->setState('list.start', 0); @@ -101,7 +101,11 @@ public static function getList($params, $app) { foreach ($items as $item) { - if ($item->params->get('count_clicks', $params->get('count_clicks')) == 1) + $temp = $item->params; + $item->params = clone $cParams; + $item->params->merge($temp); + + if ($item->params->get('count_clicks', 1) == 1) { $item->link = Route::_('index.php?option=com_weblinks&task=weblink.go&catid=' . $item->catslug . '&id=' . $item->slug); } diff --git a/src/modules/mod_weblinks/tmpl/default.php b/src/modules/mod_weblinks/tmpl/default.php index 525b183a822..0cac7fb3a74 100644 --- a/src/modules/mod_weblinks/tmpl/default.php +++ b/src/modules/mod_weblinks/tmpl/default.php @@ -9,8 +9,9 @@ defined('_JEXEC') or die; -use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Language\Text; + ?> get('groupby', 0)) : ?> @@ -36,22 +37,25 @@ get('groupby_showtitle', 1)) :?> ; -