mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 13:48:37 +02:00
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:
parent
07e3fb9879
commit
9d9c0b31e9
@ -19,14 +19,15 @@
|
||||
* @package forms
|
||||
* @subpackage fields-files
|
||||
*/
|
||||
|
||||
class SimpleImageField extends FileField {
|
||||
/**
|
||||
* @deprecated 2.5
|
||||
*/
|
||||
public $allowedExtensions = array('jpg','gif','png');
|
||||
|
||||
function __constructor($name, $title = null, $value = null, $form = null, $rightTitle = null, $folderName = null) {
|
||||
parent::__constructor($name, $title, $value, $form, $rightTitle, $folderName);
|
||||
function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null, $folderName = null) {
|
||||
parent::__construct($name, $title, $value, $form, $rightTitle, $folderName);
|
||||
|
||||
$this->getValidator()->setAllowedExtensions(array('jpg','gif','png'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user