mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-12-27 10:22:38 +00:00
use JLoader (#247)
This commit is contained in:
parent
00ddf5b2e6
commit
afa26265d8
@ -10,6 +10,7 @@
|
|||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
JLoader::register('WeblinksHelper', JPATH_ADMINISTRATOR . '/components/com_weblinks/helpers/weblinks.php');
|
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');
|
JLoader::register('CategoryHelperAssociation', JPATH_ADMINISTRATOR . '/components/com_categories/helpers/association.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -31,8 +32,6 @@ abstract class WeblinksHelperAssociation extends CategoryHelperAssociation
|
|||||||
*/
|
*/
|
||||||
public static function getAssociations($id = 0, $view = null)
|
public static function getAssociations($id = 0, $view = null)
|
||||||
{
|
{
|
||||||
jimport('helper.route', JPATH_COMPONENT_SITE);
|
|
||||||
|
|
||||||
$jinput = JFactory::getApplication()->input;
|
$jinput = JFactory::getApplication()->input;
|
||||||
$view = is_null($view) ? $jinput->get('view') : $view;
|
$view = is_null($view) ? $jinput->get('view') : $view;
|
||||||
$id = empty($id) ? $jinput->getInt('id') : $id;
|
$id = empty($id) ? $jinput->getInt('id') : $id;
|
||||||
|
Loading…
Reference in New Issue
Block a user