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
This commit is contained in:
Will Rossiter 2010-03-02 22:07:34 +00:00 committed by Sam Minnee
parent bd74d6dd76
commit bad4352d60

View File

@ -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);
}
}