diff --git a/lib/Config/Initializer.php b/lib/Config/Initializer.php index 983d4f9509..f9ca4d35ba 100644 --- a/lib/Config/Initializer.php +++ b/lib/Config/Initializer.php @@ -163,6 +163,7 @@ class Initializer { try { $this->renderer = $this->renderer_factory->getRenderer(); $this->setupWidget(); + $this->hooks->init(); } catch (\Exception $e) { $this->handleFailedInitialization($e); } @@ -270,7 +271,6 @@ class Initializer { function postInitialize() { if (!defined(self::INITIALIZED)) return; try { - $this->hooks->init(); $this->api->init(); $this->router->init(); $this->setupUserLocale();