From 5cbb94b43bda3b074694849bfe3e35e5ad01db7d Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Mon, 26 Apr 2010 23:29:57 +0000 Subject: [PATCH] MINOR: add more in-line documentation and fix the typo: should => should not git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@103520 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 03e2d0b4..96e5c984 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -412,9 +412,11 @@ JS; } // Don't open a page from a different locale - /** The record's Locale is saved in database in 2.4, and not related with Session, we should check their locale matches the Translatable::get_current_locale, - * as long as we all the HTTPRequest is init with right locale. - * This bit breaks the all FileIFrameField functions if the field is used in CMS and its relevent ajax calles, like loading the tree dropdown for TreeSelectorField. + /** The record's Locale is saved in database in 2.4, and not related with Session, + * we should not check their locale matches the Translatable::get_current_locale, + * here as long as we all the HTTPRequest is init with right locale. + * This bit breaks the all FileIFrameField functions if the field is used in CMS + * and its relevent ajax calles, like loading the tree dropdown for TreeSelectorField. */ /* if($record && Object::has_extension('SiteTree', 'Translatable') && $record->Locale && $record->Locale != Translatable::get_current_locale()) { $record = null;