mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Added getGuildLink function to Twig
This commit is contained in:
parent
945442a842
commit
abb2b36ae6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user