From bad4352d6003af64b68e69a01a8824bfa9145af4 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 2 Mar 2010 22:07:34 +0000 Subject: [PATCH] BUGFIX: use localized prefix to compare group codes rather than hard coded english string. MINOR: updated lang file git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100370 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Group.php b/security/Group.php index db54894fa..7a0e88b17 100644 --- a/security/Group.php +++ b/security/Group.php @@ -343,7 +343,7 @@ class Group extends DataObject { function onBeforeWrite() { parent::onBeforeWrite(); - if(stripos($this->Code, 'new-') === 0) { + if(stripos($this->Code, _t('SecurityAdmin.NEWGROUPPREFIX','new-')) === 0) { $this->setCode($this->Title); } }