mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Allow to disable security token
This commit is contained in:
parent
bc48151da8
commit
c1e5abe65a
@ -164,6 +164,10 @@ class PageControllerEx extends Extension
|
||||
}
|
||||
$form->setLegend('Search at ' . $config->getField('Title'));
|
||||
|
||||
if (Page::config()->get('search_disable_security_token')) {
|
||||
$form->disableSecurityToken();
|
||||
}
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user