Skip to content

Commit

Permalink
solve php notices
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jul 13, 2016
1 parent d07ee16 commit 3ef9ba2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/system/languagefilter/languagefilter.php
Expand Up @@ -85,7 +85,8 @@ public function __construct(&$subject, $config)
// If language filter plugin is executed in a admin page (ex: JRoute site).
else
{
$this->current_lang = $this->default_lang;
// Set current language to default site language, fallback to en-GB if there is no content language for the default site language.
$this->current_lang = isset($this->lang_codes[$this->default_lang]) ? $this->default_lang : 'en-GB';

foreach ($this->sefs as $sef => $language)
{
Expand Down

0 comments on commit 3ef9ba2

Please sign in to comment.