Skip to content

Commit

Permalink
Language Filter plugin disabled url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daveewbl committed Jan 20, 2023
1 parent edfc078 commit 6d536cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/src/AlgoliaSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,10 @@ private function loadRouterLanguageRules(): void
return;
}

if (!PluginHelper::isEnabled('system', 'languagefilter')) {
return;
}

$this->app = CMSApplication::getInstance('site');
$this->lang_codes = LanguageHelper::getLanguages('lang_code');
$this->default_lang = ComponentHelper::getParams('com_languages')->get('site', 'en-GB');
Expand Down

0 comments on commit 6d536cb

Please sign in to comment.