29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-27 07:33:41 +00:00

Handling error messages as in 11.2

This commit is contained in:
chdemko 2011-11-26 19:23:30 +01:00
parent 12b96518e8
commit 8a94bfa3b7
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,9 @@ require_once JPATH_LIBRARIES.'/import.php';
// Force library to be in JError legacy mode
JError::$legacy = true;
JError::setErrorHandling(E_NOTICE, 'message');
JError::setErrorHandling(E_WARNING, 'message');
JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));
// Pre-Load configuration.
ob_start();

View File

@ -46,6 +46,9 @@ require_once JPATH_LIBRARIES.'/import.php';
// Force library to be in JError legacy mode
JError::$legacy = true;
JError::setErrorHandling(E_NOTICE, 'message');
JError::setErrorHandling(E_WARNING, 'message');
JError::setErrorHandling(E_ERROR, 'message', array('JError', 'customErrorPage'));
// Pre-Load configuration.
ob_start();