32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2025-01-14 16:39:46 +00:00

Merge pull request #153 from therunnergit/count-clicks-global-option

Fix missing global option default
This commit is contained in:
Viktor Vogel 2015-11-01 10:56:26 +01:00
commit f913a99a87

View File

@ -33,7 +33,7 @@ class WeblinksViewCategory extends JViewCategory
{
$item->slug = $item->alias ? ($item->id . ':' . $item->alias) : $item->id;
if ($item->params->get('count_clicks', $this->params->get('count_clicks')) == 1)
if ($item->params->get('count_clicks', $this->params->get('count_clicks', 1)) == 1)
{
$item->link = JRoute::_('index.php?option=com_weblinks&task=weblink.go&id=' . $item->id);
}