- $module->run($this->baseURL, $this->args, $this->logger, $this->profiler, $_SERVER, $_POST);
+ $response = $module->run($_POST, $_REQUEST);
+ 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);
+ } else {
+ $page->exit($response);
+ }