mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-10 16:09:21 +02:00
Use optionally separate folder for views (thanks @Scrollog for idea)
This commit is contained in:
parent
2fece725a4
commit
03e2752139
@ -136,6 +136,11 @@ if($forumSetting != '')
|
||||
$twig->addGlobal('template_name', $template_name);
|
||||
$twig->addGlobal('template_path', $template_path);
|
||||
if($twig_loader) {
|
||||
$viewsPath = BASE . $template_path . '/views';
|
||||
if (is_dir($viewsPath)) {
|
||||
$twig_loader->prependPath($viewsPath);
|
||||
}
|
||||
|
||||
$twig_loader->prependPath(BASE . $template_path);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user