From 51e9bb2a7fec161d8f5d3ecb950bd5ec8ad613cd Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 17 Feb 2023 17:09:38 +0100 Subject: [PATCH] set default for optional parameter (twig functions) --- system/twig.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/twig.php b/system/twig.php index 4f3639d8..65e6ded0 100644 --- a/system/twig.php +++ b/system/twig.php @@ -70,17 +70,17 @@ $function = new TwigFunction('generateLink', function ($s, $n, $b = false) { }); $twig->addFunction($function); -$function = new TwigFunction('getPlayerLink', function ($s, $p) { +$function = new TwigFunction('getPlayerLink', function ($s, $p = true) { return getPlayerLink($s, $p); }); $twig->addFunction($function); -$function = new TwigFunction('getMonsterLink', function ($s, $p) { +$function = new TwigFunction('getMonsterLink', function ($s, $p = true) { return getMonsterLink($s, $p); }); $twig->addFunction($function); -$function = new TwigFunction('getGuildLink', function ($s, $p) { +$function = new TwigFunction('getGuildLink', function ($s, $p = true) { return getGuildLink($s, $p); }); $twig->addFunction($function);