mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f4e8817e83
commit
c7d9c10760
@ -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'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user