Skip to content

Commit

Permalink
fix TinyMCE automatic language detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Dec 25, 2016
1 parent 7002402 commit 62a8312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public function onDisplay($name, $content, $width, $height, $col, $row, $buttons
$skin = basename($skindirs[(int) $this->params->get($side, 0)]);
}

$langMode = $this->params->get('lang_mode', 0);
$langPrefix = $this->params->get('lang_code', 'en');
$langMode = $levelParams->get('lang_mode', 1);
$langPrefix = $levelParams->get('lang_code', 'en');

if ($langMode)
{
Expand Down

0 comments on commit 62a8312

Please sign in to comment.