Added getGuildLink function to Twig

This commit is contained in:
whiteblXK 2019-05-06 22:44:03 +02:00
parent 945442a842
commit abb2b36ae6

View File

@ -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);