Add comments for possibly confusing code.

This commit is contained in:
mark_story 2014-12-13 22:25:52 -05:00
parent c58e7da667
commit f19916bccf

View file

@ -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) {