mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Fix install, where $twig is not present in tools
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user