diff --git a/src/components/com_weblinks/helpers/association.php b/src/components/com_weblinks/helpers/association.php index 4803c62..5b5373b 100644 --- a/src/components/com_weblinks/helpers/association.php +++ b/src/components/com_weblinks/helpers/association.php @@ -10,6 +10,7 @@ defined('_JEXEC') or die; JLoader::register('WeblinksHelper', JPATH_ADMINISTRATOR . '/components/com_weblinks/helpers/weblinks.php'); +JLoader::register('WeblinksHelperRoute', JPATH_SITE . '/components/com_weblinks/helpers/route.php'); JLoader::register('CategoryHelperAssociation', JPATH_ADMINISTRATOR . '/components/com_categories/helpers/association.php'); /** @@ -31,11 +32,9 @@ abstract class WeblinksHelperAssociation extends CategoryHelperAssociation */ public static function getAssociations($id = 0, $view = null) { - jimport('helper.route', JPATH_COMPONENT_SITE); - $jinput = JFactory::getApplication()->input; - $view = is_null($view) ? $jinput->get('view') : $view; - $id = empty($id) ? $jinput->getInt('id') : $id; + $view = is_null($view) ? $jinput->get('view') : $view; + $id = empty($id) ? $jinput->getInt('id') : $id; if ($view == 'category' || $view == 'categories') {