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:
parent
12b96518e8
commit
8a94bfa3b7
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user