From 7fc439dcd31a979bdddb40afb7dbab0e8b602b1d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 14 May 2009 06:06:34 +0000 Subject: [PATCH] MINOR Adapted to API change in r76853 (Translatable::get_current_locale()) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76854 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 17999dfd..bd00be28 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -404,7 +404,7 @@ JS; } // Don't open a page from a different locale - if($record && Translatable::is_enabled() && $record->Locale && $record->Locale != Translatable::current_locale()) { + if($record && Translatable::is_enabled() && $record->Locale && $record->Locale != Translatable::get_current_locale()) { $record = null; } @@ -1200,7 +1200,7 @@ JS; $fields = new FieldSet( new HiddenField("ParentID"), - new HiddenField("Locale", 'Locale', Translatable::current_locale()), + new HiddenField("Locale", 'Locale', Translatable::get_current_locale()), new DropdownField("PageType", "", $pageTypes, 'Page') ); @@ -1409,7 +1409,7 @@ JS; } //user doesn't have permission to switch langs so just show a string displaying current language - return i18n::get_locale_name( Translatable::current_locale() ); + return i18n::get_locale_name( Translatable::get_current_locale() ); } /**