mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Update twig.php
This commit is contained in:
parent
95343cec02
commit
6f58df0467
@ -16,6 +16,8 @@ use Twig\Loader\FilesystemLoader as Twig_FilesystemLoader;
|
|||||||
use Twig\TwigFilter;
|
use Twig\TwigFilter;
|
||||||
use Twig\TwigFunction;
|
use Twig\TwigFunction;
|
||||||
|
|
||||||
|
global $twig, $twig_loader;
|
||||||
|
|
||||||
$dev_mode = (config('env') === 'dev');
|
$dev_mode = (config('env') === 'dev');
|
||||||
$twig_loader = new Twig_FilesystemLoader(SYSTEM . 'templates');
|
$twig_loader = new Twig_FilesystemLoader(SYSTEM . 'templates');
|
||||||
$twig = new Twig_Environment($twig_loader, array(
|
$twig = new Twig_Environment($twig_loader, array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user