Skip to content

Commit

Permalink
undeorecated
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Mar 20, 2019
1 parent 1899450 commit 9d2c868
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/mod_languages/Helper/LanguagesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,8 @@ public static function getList(&$params)
}
else
{
// Load component associations
if (!defined('JPATH_COMPONENT_SITE'))
{
define('JPATH_COMPONENT_SITE', JPATH_SITE . '/components/' . $app->input->get('option'));
}

$class = str_replace('com_', '', $app->input->get('option')) . 'HelperAssociation';
\JLoader::register($class, JPATH_COMPONENT_SITE . '/helpers/association.php');
\JLoader::register($class, JPATH_SITE . '/components/' . $app->input->get('option') . '/helpers/association.php');

if (class_exists($class) && is_callable(array($class, 'getAssociations')))
{
Expand Down

0 comments on commit 9d2c868

Please sign in to comment.