diff --git a/components/ILIAS/GlobalScreen/resources/callback_handler.php b/components/ILIAS/GlobalScreen/resources/callback_handler.php index b9c1133729a2..d77e792d0c99 100755 --- a/components/ILIAS/GlobalScreen/resources/callback_handler.php +++ b/components/ILIAS/GlobalScreen/resources/callback_handler.php @@ -1,10 +1,28 @@ run(); } diff --git a/components/ILIAS/GlobalScreen/resources/gs_content.php b/components/ILIAS/GlobalScreen/resources/gs_content.php index e111a98cb887..40252738d757 100644 --- a/components/ILIAS/GlobalScreen/resources/gs_content.php +++ b/components/ILIAS/GlobalScreen/resources/gs_content.php @@ -19,6 +19,7 @@ namespace ILIAS\GlobalScreen\Client; require_once(__DIR__ . '/../vendor/composer/vendor/autoload.php'); +require_once(__DIR__ . '/../artifacts/bootstrap_default.php'); use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher; use ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost; @@ -29,8 +30,6 @@ class ContentRenderer public function run() { - \ilContext::init(\ilContext::CONTEXT_WAC); - \ilInitialisation::initILIAS(); global $DIC; $GS = $DIC->globalScreen(); @@ -58,5 +57,7 @@ public function run() } if (php_sapi_name() !== 'cli') { + \ilContext::init(\ilContext::CONTEXT_WAC); + entry_point('ILIAS Legacy Initialisation Adapter'); (new ContentRenderer())->run(); } diff --git a/components/ILIAS/GlobalScreen/resources/notify.php b/components/ILIAS/GlobalScreen/resources/notify.php index 82c7357fc18e..8efe3165b39d 100755 --- a/components/ILIAS/GlobalScreen/resources/notify.php +++ b/components/ILIAS/GlobalScreen/resources/notify.php @@ -1,6 +1,5 @@ run(); diff --git a/components/ILIAS/GlobalScreen/src/Client/CallbackHandler.php b/components/ILIAS/GlobalScreen/src/Client/CallbackHandler.php index 1171e371f772..e1661c8a8ad5 100755 --- a/components/ILIAS/GlobalScreen/src/Client/CallbackHandler.php +++ b/components/ILIAS/GlobalScreen/src/Client/CallbackHandler.php @@ -1,6 +1,5 @@ ctrl = $DIC->ctrl(); $this->wrapper = $DIC->http()->wrapper();