Skip to content

Commit

Permalink
[4.0] mod_languages php notice on error page
Browse files Browse the repository at this point in the history
If you have the language switcher module published and you go to a 404 error page then you will see this

Apply the patch and the php notice is gone
  • Loading branch information
brianteeman committed Mar 20, 2019
1 parent 82b4a89 commit 7262eb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/mod_languages/Helper/LanguagesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ 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');

Expand Down

0 comments on commit 7262eb6

Please sign in to comment.