diff --git a/system/twig.php b/system/twig.php index 4ddedba8..35582a6a 100644 --- a/system/twig.php +++ b/system/twig.php @@ -26,6 +26,11 @@ $function = new Twig_SimpleFunction('getLink', function ($s) { }); $twig->addFunction($function); +$function = new Twig_SimpleFunction('getPlayerLink', function ($s, $p) { + return getPlayerLink($s, $p); +}); +$twig->addFunction($function); + $function = new Twig_SimpleFunction('hook', function ($hook) { global $hooks; $hooks->trigger($hook);