mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add comments for possibly confusing code.
This commit is contained in:
parent
c58e7da667
commit
f19916bccf
1 changed files with 7 additions and 1 deletions
|
@ -157,7 +157,13 @@ class ExceptionRenderer {
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$startup = false;
|
$startup = false;
|
||||||
}
|
}
|
||||||
if ($startup === false && !empty($controller) && $controller->Components->enabled('RequestHandler')) {
|
// Retry RequestHandler, as another aspect of startupProcess()
|
||||||
|
// could have failed. Ignore any exceptions out of startup, as
|
||||||
|
// there could be userland input data parsers.
|
||||||
|
if ($startup === false &&
|
||||||
|
!empty($controller) &&
|
||||||
|
$controller->Components->enabled('RequestHandler')
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
$controller->RequestHandler->startup($controller);
|
$controller->RequestHandler->startup($controller);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
Loading…
Reference in a new issue