Allow for a configurable field name
This commit is contained in:
parent
a25b052510
commit
ca8861f36b
|
@ -74,6 +74,8 @@ class FormSpamProtectionExtension extends Extension
|
|||
// captcha form field name (must be unique)
|
||||
if (isset($options['name'])) {
|
||||
$name = $options['name'];
|
||||
} else if($field_name = Config::inst()->get('FormSpamProtectionExtension', 'field_name')) {
|
||||
$name = $field_name;
|
||||
} else {
|
||||
$name = 'Captcha';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue