BUGFIX: wrong constructor function name (from r100508)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105585 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 04:12:06 +00:00
parent 07e3fb9879
commit 9d9c0b31e9

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