mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-27 21:56:50 +01:00
Use optionally separate folder for views (thanks @Scrollog for idea)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user