mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 20:43:26 +02:00
[WIP] More work on settings
Move more config to settings (mainly mail_* + some other) Remove mail_admin, wasnt used anywhere Add return type to some functions Add Twig settings(key) function Possibility to save setting to db
This commit is contained in:
@@ -106,6 +106,11 @@ $function = new TwigFunction('config', function ($key) {
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('setting', function ($key) {
|
||||
return setting($key);
|
||||
});
|
||||
$twig->addFunction($function);
|
||||
|
||||
$function = new TwigFunction('getCustomPage', function ($name) {
|
||||
$success = false;
|
||||
return getCustomPage($name, $success);
|
||||
|
Reference in New Issue
Block a user