Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing misleading ImageField deprecation message

  • Loading branch information...
commit 27a7fc34c1a00055e8978f5a9825d72aa97ff0ba 1 parent fe65da7
@halkyon halkyon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/ImageField.php
View
2  forms/ImageField.php
@@ -20,7 +20,7 @@
* $myField->setFolderName('myFolder');
* </code>
*
- * @deprecated 3.0 Use UploadField with $myField->allowedExtensions = array('jpg', 'gif', 'png')
+ * @deprecated 3.0 Use UploadField with $myField->getValidator()->setAllowedExtensions(array('jpg', 'gif', 'png'));
*
* @package forms
* @subpackage fields-files
Please sign in to comment.
Something went wrong with that request. Please try again.