mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
API Stop using deprecated API
This commit is contained in:
parent
fc36247598
commit
688b438e88
@ -118,7 +118,7 @@ class FormSpamProtectionExtension extends Extension
|
||||
// Add before field specified by insertBefore
|
||||
$inserted = false;
|
||||
if (!empty($options['insertBefore'])) {
|
||||
$inserted = $this->owner->Fields()->insertBefore($field, $options['insertBefore']);
|
||||
$inserted = $this->owner->Fields()->insertBefore($options['insertBefore'], $field);
|
||||
}
|
||||
if (!$inserted) {
|
||||
// Add field to end if not added already
|
||||
|
Loading…
Reference in New Issue
Block a user