mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Add optional $return = false parameter to the csrf function
This commit is contained in:
@@ -126,8 +126,8 @@ $function = new TwigFunction('getCustomPage', function ($name) {
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('csrf', function () {
|
||||
csrf();
|
||||
$function = new TwigFunction('csrf', function ($return = false) {
|
||||
return csrf($return);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
|
Reference in New Issue
Block a user