mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Deprecated SimpleImageField, use FileField or UploadField with setAllowedExtensions()
This commit is contained in:
parent
c0d187071a
commit
9c0a606abf
@ -63,9 +63,14 @@
|
||||
* @subpackage fields-files
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use UploadField with $myField->allowedExtensions = array('jpg', 'gif', 'png')
|
||||
*/
|
||||
class SimpleImageField extends FileField {
|
||||
|
||||
function __construct($name, $title = null, $value = null) {
|
||||
Deprecation::notice('3.0', "Use UploadField with $myField->allowedExtensions = array('jpg', 'gif', 'png')");
|
||||
|
||||
if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRightTitle() and setFolderName() instead of constructor arguments');
|
||||
|
||||
parent::__construct($name, $title, $value);
|
||||
|
Loading…
Reference in New Issue
Block a user