Skip to content

Commit

Permalink
BUGFIX: replacing calls to deprecated Upload functions - using valida…
Browse files Browse the repository at this point in the history
…tor instead (related to r100057)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100496 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
mateusz authored and Sam Minnee committed Feb 2, 2011
1 parent 56a32fe commit 98cec46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/GroupImportForm.php
Expand Up @@ -45,7 +45,7 @@ function __construct($controller, $name, $fields = null, $actions = null, $valid
)
)
);
$fileField->setAllowedExtensions(array('csv'));
$fileField->getValidator()->setAllowedExtensions(array('csv'));
}

if(!$actions) $actions = new FieldSet(
Expand Down
2 changes: 1 addition & 1 deletion code/MemberImportForm.php
Expand Up @@ -44,7 +44,7 @@ function __construct($controller, $name, $fields = null, $actions = null, $valid
)
)
);
$fileField->setAllowedExtensions(array('csv'));
$fileField->getValidator()->setAllowedExtensions(array('csv'));
}

if(!$actions) $actions = new FieldSet(
Expand Down

0 comments on commit 98cec46

Please sign in to comment.