Fixed wrong variable name.

This commit is contained in:
flash 2023-12-15 02:20:49 +00:00
parent de5e84073d
commit acc4e52e3c

View file

@ -32,7 +32,7 @@ if($config->hasValues('sentry:dsn'))
}); });
})($config->scopeTo('sentry')); })($config->scopeTo('sentry'));
$db = DbTools::create($cfg->getString('database:dsn', 'null:')); $db = DbTools::create($config->getString('database:dsn', 'null:'));
$db->execute('SET SESSION time_zone = \'+00:00\', sql_mode = \'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION\';'); $db->execute('SET SESSION time_zone = \'+00:00\', sql_mode = \'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION\';');
$awk = new AwakiContext($db, $config->scopeTo('urls')); $awk = new AwakiContext($db, $config->scopeTo('urls'));