BUGFIX: wrong constructor function name

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100508 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mateusz Uzdowski 2010-03-04 19:52:19 +00:00 committed by Sam Minnee
parent f4e8817e83
commit c7d9c10760

View File

@ -19,14 +19,15 @@
* @package forms * @package forms
* @subpackage fields-files * @subpackage fields-files
*/ */
class SimpleImageField extends FileField { class SimpleImageField extends FileField {
/** /**
* @deprecated 2.5 * @deprecated 2.5
*/ */
public $allowedExtensions = array('jpg','gif','png'); public $allowedExtensions = array('jpg','gif','png');
function __constructor($name, $title = null, $value = null, $form = null, $rightTitle = null, $folderName = null) { function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null, $folderName = null) {
parent::__constructor($name, $title, $value, $form, $rightTitle, $folderName); parent::__construct($name, $title, $value, $form, $rightTitle, $folderName);
$this->getValidator()->setAllowedExtensions(array('jpg','gif','png')); $this->getValidator()->setAllowedExtensions(array('jpg','gif','png'));
} }