mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #85 from creative-commoners/pulls/3/stop-using-depr
API Stop using deprecated API
This commit is contained in:
commit
2c8fc03f2f
@ -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