mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-15 10:29:20 +02:00
Fix install, where $twig is not present in tools
This commit is contained in:
parent
e45dd88a93
commit
3111d66df9
@ -122,7 +122,9 @@ try {
|
||||
|
||||
$eloquentConnection = $capsule->getConnection();
|
||||
|
||||
$twig->addGlobal('db', $db);
|
||||
if (isset($twig)) {
|
||||
$twig->addGlobal('db', $db);
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
if(isset($cache) && $cache->enabled()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user