File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ public function getServiceUse(): string
6161 protected function initIliasAndCheckSession (string $ session_id ): void
6262 {
6363 $ this ->initAuth ($ session_id );
64- $ this ->reInitUser ();
6564 if (!$ this ->checkSession ($ session_id )) {
6665 throw new ilSoapPluginException ($ this ->getMessage ());
6766 }
Original file line number Diff line number Diff line change @@ -147,8 +147,9 @@ protected function initAuth(string $sid): void
147147
148148 session_id ($ sid );
149149
150+ ilInitialisation::reInitUser ();
151+
150152 if (ilContext::getType () !== ilContext::CONTEXT_SOAP ) {
151- ilInitialisation::reInitUser ();
152153 ilUtil::setCookie (session_name (), $ sid );
153154 }
154155 }
@@ -162,7 +163,7 @@ protected function initIlias(): void
162163 }
163164 }
164165 }
165-
166+
166167 public function reInitUser (): void
167168 {
168169 if (ilContext::getType () === ilContext::CONTEXT_SOAP ) {
Original file line number Diff line number Diff line change 2727
2828require_once 'vendor/composer/vendor/autoload.php ' ;
2929require_once __DIR__ . '/../../artifacts/bootstrap_default.php ' ;
30+
31+ ilContext::init (ilContext::CONTEXT_SOAP );
32+
3033entry_point ('ILIAS Legacy Initialisation Adapter ' );
3134
3235// Initialize the error_reporting level, until it will be overwritte when ILIAS gets initialized
3336error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED );
3437
35- ilContext::init (ilContext::CONTEXT_SOAP );
3638
3739$ ilIliasIniFile = new ilIniFile ('./ilias.ini.php ' );
3840$ ilIliasIniFile ->read ();
You can’t perform that action at this time.
0 commit comments