- // Let the module run it's internal process (init, get, post, ...)
- $module->run($this->l10n, $this->baseURL, $this->logger, $this->profiler, $_SERVER, $_POST);
+ // Processes data from GET requests
+ $httpinput = $httpInput->process();
+ $input = array_merge($httpinput['variables'], $httpinput['files'], $request ?? $_REQUEST);
+
+ // Let the module run its internal process (init, get, post, ...)
+ $timestamp = microtime(true);
+ $response = $module->run($httpException, $input);
+ $this->profiler->set(microtime(true) - $timestamp, 'content');
+ if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) {
+ $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId());
+ } else {
+ $page->exit($response);
+ }