From 6f58df04671afcc6e12c9c35428ef9c44324673d Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 19 Nov 2024 14:08:27 +0100 Subject: [PATCH] Update twig.php --- system/twig.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/twig.php b/system/twig.php index 9176c371..1268f292 100644 --- a/system/twig.php +++ b/system/twig.php @@ -16,6 +16,8 @@ use Twig\Loader\FilesystemLoader as Twig_FilesystemLoader; use Twig\TwigFilter; use Twig\TwigFunction; +global $twig, $twig_loader; + $dev_mode = (config('env') === 'dev'); $twig_loader = new Twig_FilesystemLoader(SYSTEM . 'templates'); $twig = new Twig_Environment($twig_loader, array(