Skip to content

Commit

Permalink
[K6.3] CKeditor broken when language file not present #9701
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Dec 23, 2024
1 parent 16a4443 commit b6cec72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/site/template/aurelia/layouts/widget/editor/ckeditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Kunena\Forum\Libraries\Html\KunenaParser;
use Kunena\Forum\Libraries\Route\KunenaRoute;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\LanguageHelper;

$this->wa->registerAndUseScript('ckeditor', 'media/kunena/core/js/ckeditor.js');
$this->doc->addScriptOptions('com_kunena.ckeditor_config', $this->template->params->get('ckeditorcustomprefixconfigfile') . 'ckeditor_config.js');
Expand All @@ -28,6 +29,9 @@

$user = Factory::getApplication()->getIdentity();
$userLanguage = $user->getParam('language', 'default');
if (!LanguageHelper::exists($userLanguage)) {
$userLanguage = 'default';
}
$joomlaLanguage = Factory::getApplication()->getLanguage()->getLocale();

if ($userLanguage != 'default' && $userLanguage != 'active') {
Expand Down

0 comments on commit b6cec72

Please sign in to comment.