BUGFIX: replacing calls to deprecated Upload functions - using validator instead (related to r100057)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100496 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mateusz Uzdowski 2010-03-04 04:42:41 +00:00 committed by Sam Minnee
parent 56a32fe5c6
commit 98cec468b2
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class GroupImportForm extends Form {
)
)
);
$fileField->setAllowedExtensions(array('csv'));
$fileField->getValidator()->setAllowedExtensions(array('csv'));
}
if(!$actions) $actions = new FieldSet(

View File

@ -44,7 +44,7 @@ class MemberImportForm extends Form {
)
)
);
$fileField->setAllowedExtensions(array('csv'));
$fileField->getValidator()->setAllowedExtensions(array('csv'));
}
if(!$actions) $actions = new FieldSet(