From abb2b36ae6d9f34be9407d806cd8cf54e74b1d9a Mon Sep 17 00:00:00 2001 From: whiteblXK Date: Mon, 6 May 2019 22:44:03 +0200 Subject: [PATCH] Added getGuildLink function to Twig --- system/twig.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/twig.php b/system/twig.php index 35582a6a..34e65a2d 100644 --- a/system/twig.php +++ b/system/twig.php @@ -31,6 +31,11 @@ $function = new Twig_SimpleFunction('getPlayerLink', function ($s, $p) { }); $twig->addFunction($function); +$function = new Twig_SimpleFunction('getGuildLink', function ($s, $p) { + return getGuildLink($s, $p); +}); +$twig->addFunction($function); + $function = new Twig_SimpleFunction('hook', function ($hook) { global $hooks; $hooks->trigger($hook);