mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
New functions: getCustomPage() and getCustomPageInfo()
This commit is contained in:
@@ -52,8 +52,15 @@ $function = new Twig_SimpleFunction('config', function ($key) {
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new Twig_SimpleFunction('getCustomPage', function ($name) {
|
||||
$success = false;
|
||||
return getCustomPage($name, $success);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$filter = new Twig_SimpleFilter('urlencode', function ($s) {
|
||||
return urlencode($s);
|
||||
});
|
||||
|
||||
$twig->addFilter($filter);
|
||||
unset($function, $filter);
|
||||
|
Reference in New Issue
Block a user