mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-10 02:50:46 +01:00
Move ->load into App.php and other fixes
This commit is contained in:
@@ -46,8 +46,6 @@ if(isset($config['gzip_output']) && $config['gzip_output'] && isset($_SERVER['HT
|
||||
|
||||
// event system
|
||||
$hooks = app()->get('hooks');
|
||||
$hooks->load();
|
||||
$hooks->trigger(HOOK_INIT);
|
||||
|
||||
// twig
|
||||
require_once SYSTEM . 'twig.php';
|
||||
@@ -151,8 +149,7 @@ if (!isset($configDatabaseAutoMigrate) || $configDatabaseAutoMigrate) {
|
||||
}
|
||||
|
||||
// settings
|
||||
$settings = Settings::getInstance();
|
||||
$settings->load();
|
||||
$settings = app()->get('settings');
|
||||
|
||||
// csrf protection
|
||||
$token = getSession('csrf_token');
|
||||
|
||||
Reference in New Issue
Block a user