Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/logger.php
Show First 20 Lines • Show All 1272 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
$errno = $this->_getFatalErrorTitle($errno); | $errno = $this->_getFatalErrorTitle($errno); | ||||
$margin = $this->Application->isAdmin ? '8px' : 'auto'; | $margin = $this->Application->isAdmin ? '8px' : 'auto'; | ||||
$error_msg = $this->_logger->toString($errno, PHP_SAPI === 'cli'); | $error_msg = $this->_logger->toString($errno, PHP_SAPI === 'cli'); | ||||
if ( PHP_SAPI === 'cli' ) { | if ( PHP_SAPI === 'cli' ) { | ||||
echo $error_msg; | echo $error_msg; | ||||
} | exit(1); | ||||
else { | |||||
echo '<div style="background-color: #FEFFBF; margin: ' . $margin . '; padding: 10px; border: 2px solid red; text-align: center">' . $error_msg . '</div>'; | |||||
} | } | ||||
echo '<div style="background-color: #FEFFBF; margin: ' . $margin . '; padding: 10px; border: 2px solid red; text-align: center">' . $error_msg . '</div>'; | |||||
exit; | exit; | ||||
} | } | ||||
/** | /** | ||||
* Returns title to show for a fatal | * Returns title to show for a fatal | ||||
* | * | ||||
* @abstract | * @abstract | ||||
* @param Exception|int $errno | * @param Exception|int $errno | ||||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |