Add line in bootstrap file

This commit is contained in:
Dave Smith-Hayes 2024-05-25 12:02:18 -04:00
parent f3f36b333c
commit 2b24a4263c

View File

@ -84,6 +84,7 @@ class Bootstrap
$templatePath = __DIR__ . "/../templates"; $templatePath = __DIR__ . "/../templates";
$templateCache = false; $templateCache = false;
$twig = Twig::create($templatePath, [ 'cache' => $templateCache ]); $twig = Twig::create($templatePath, [ 'cache' => $templateCache ]);
// Add the global variables // Add the global variables
$twig->getEnvironment() $twig->getEnvironment()
->addGlobal('site_name', $config->get('site.name')); ->addGlobal('site_name', $config->get('site.name'));