/** * Throws a 404 error with the corresponding message. * * @param string $errorMessage * @return void */ protected function throw404($errorMessage) { // TODO Write to our own error log here // Set language to allow localized error pages $_GET['L'] = $this->detectedLanguageId; $this->caller->pageNotFoundAndExit($errorMessage); }
/** * Throws a 404 error with the corresponding message. * * @param string $errorMessage * @return void */ protected function throw404($errorMessage) { // TODO Write to our own error log here // Set language to allow localized error pages if (MathUtility::canBeInterpretedAsInteger($this->detectedLanguageId)) { $_GET['L'] = $this->detectedLanguageId; } $this->caller->pageNotFoundAndExit($errorMessage); }
/** * Throws a 404 error with the corresponding message. * * @param string $errorMessage * @return void */ protected function throw404($errorMessage) { // TODO Write to our own error log here $this->caller->pageNotFoundAndExit($errorMessage); }
/** * We only want to handle this as a 404 if there is no alternative. * Most of the time, we want to show the login form. * If $this->TYPO3_CONF_VARS['FE']['pageNotFound_handling'] is not empty, * this is not possible without this Xclass any more */ public function pageNotFoundAndExit($reason = '', $header = '') { if (!count($this->page)) { parent::pageNotFoundAndExit($reason = '', $header = ''); } }