From ae1161d77050bda181802b4496c9de920a7bb1bc Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 8 Feb 2025 23:43:15 +0100 Subject: [PATCH] Add template_name to twig variables --- system/template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/template.php b/system/template.php index 0434dbac..a3c7a098 100644 --- a/system/template.php +++ b/system/template.php @@ -133,6 +133,7 @@ if($forumSetting != '') $template['link_forum'] = ""; } +$twig->addGlobal('template_name', $template_name); $twig->addGlobal('template_path', $template_path); if($twig_loader) { $twig_loader->prependPath(BASE . $template_path);