From 3af58dff76a12e89c4af6192e7fbcd31bf7cc782 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 1 Oct 2009 03:46:28 +0000 Subject: [PATCH] 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 --- code/CMSMain.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 2af8b390..4de384f5 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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');