Skip to content

Commit

Permalink
[K6.3] In Joomla! 5.1+ it returns active for the language by default of
Browse files Browse the repository at this point in the history
the user
  • Loading branch information
xillibit committed Jun 13, 2024
1 parent 3d19149 commit 550db48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$user = Factory::getApplication()->getIdentity();
$userLanguage = $user->getParam('language', 'default');
$joomlaLanguage = Factory::getApplication()->getLanguage()->getDefault();
if ($userLanguage != 'default') {
if ($userLanguage != 'default' && $userLanguage != 'active') {
$this->doc->addScriptOptions('com_kunena.ckeditor_userdefaultlanguage', substr($userLanguage, 0, 2));
} else {
$this->doc->addScriptOptions('com_kunena.ckeditor_userdefaultlanguage', 'default');
Expand Down

0 comments on commit 550db48

Please sign in to comment.