Added support for a html_custom folder (#2018)

This commit is contained in:
Belle Aerni authored and GitHub committed 2023-12-28 15:46:44 -08:00
1 parent e29bcc022b
commit bd65fec782
1 file changed
+1
+1
View File
@@ -50,6 +50,7 @@ class Box_TwigLoader extends Twig\Loader\FilesystemLoader
$name_split = explode("_", $name);
$paths = array();
$paths[] = $this->options["theme"] . DIRECTORY_SEPARATOR . "html_custom";
$paths[] = $this->options["theme"] . DIRECTORY_SEPARATOR . "html";
if (isset($name_split[1])) {
$paths[] = $this->options["mods"] . DIRECTORY_SEPARATOR . ucfirst($name_split[1]) . DIRECTORY_SEPARATOR . "html_" . $this->options["type"];