From b62bb7ab777fe6bcd1c42161c970c36879fc72b7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 17 May 2009 05:36:51 +0000 Subject: [PATCH] MINOR Updated CMSMain to Translatable API changes git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77007 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 5f3ea74f..3254a2f2 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -97,7 +97,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr } else { $this->Locale = Translatable::default_locale(); } - Translatable::set_reading_locale($this->Locale); + Translatable::set_current_locale($this->Locale); } // collect languages for TinyMCE spellchecker plugin @@ -1197,7 +1197,7 @@ JS; $record = $this->getRecord($originalLangID); $this->Locale = $langCode; - Translatable::set_reading_locale($langCode); + Translatable::set_current_locale($langCode); // Create a new record in the database - this is different // to the usual "create page" pattern of storing the record