mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-09-28 20:29:01 +02:00
BUGFIX: Added condition to verify userforms module class exists
This commit is contained in:
parent
aa8ef8aca9
commit
feddb2cc49
@ -6,8 +6,8 @@
|
|||||||
*
|
*
|
||||||
* @package spamprotection
|
* @package spamprotection
|
||||||
*/
|
*/
|
||||||
|
if(class_exists('EditableFormField')){
|
||||||
class EditableSpamProtectionField extends EditableFormField {
|
class EditableSpamProtectionField extends EditableFormField {
|
||||||
|
|
||||||
static $singular_name = 'Spam Protection Field';
|
static $singular_name = 'Spam Protection Field';
|
||||||
|
|
||||||
@ -30,4 +30,5 @@ class EditableSpamProtectionField extends EditableFormField {
|
|||||||
function showInReports() {
|
function showInReports() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user