mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Pass locale rather than language to spellchecker_languages
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@87869 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8d51ecadea
commit
3af58dff76
@ -98,9 +98,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
|
||||
// collect languages for TinyMCE spellchecker plugin.
|
||||
// see http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
|
||||
$lang = i18n::get_lang_from_locale($this->Locale);
|
||||
$langName = i18n::get_locale_name($this->Locale);
|
||||
HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+{$langName}={$lang}");
|
||||
HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+{$langName}={$this->Locale}");
|
||||
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.js');
|
||||
Requirements::javascript(CMS_DIR . '/javascript/CMSMain_left.js');
|
||||
|
Loading…
Reference in New Issue
Block a user