Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e59aa7c3

Přidáno uživatelem Filip Jani před téměř 6 roky(ů)

Úprava error presenterů pro zobrazování chyb

Zobrazit rozdíly:

app/FrontModule/presenters/ErrorPresenter.php
34 34
		$this->logger->log($exception, ILogger::EXCEPTION);
35 35
		return new Responses\CallbackResponse(function (Http\IRequest $httpRequest, Http\IResponse $httpResponse) {
36 36
			if (preg_match('#^text/html(?:;|$)#', $httpResponse->getHeader('Content-Type'))) {
37
				require __DIR__ . '/templates/Error/500.phtml';
37
				require __DIR__ . '/../templates/Error/500.phtml';
38 38
			}
39 39
		});
40 40
	}

Také k dispozici: Unified diff