Created
October 30, 2011 21:03
-
-
Save rvsjoen/1326440 to your computer and use it in GitHub Desktop.
Infinite loop bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git index.php index.php | |
diff --git libraries/joomla/application/application.php libraries/joomla/application/application.php | |
index 9faf1ff..710ed45 100644 | |
--- libraries/joomla/application/application.php | |
+++ libraries/joomla/application/application.php | |
@@ -196,6 +196,9 @@ class JApplication extends JObject | |
{ | |
jimport('joomla.plugin.helper'); | |
+ // If we get this far, we can enable the custom error page handler | |
+ JError::setErrorHandling(E_ERROR, 'callback', array('JError', 'customErrorPage')); | |
+ | |
// Set the language in the class. | |
$config = JFactory::getConfig(); | |
diff --git libraries/joomla/error/error.php libraries/joomla/error/error.php | |
index 978899b..a956945 100644 | |
--- libraries/joomla/error/error.php | |
+++ libraries/joomla/error/error.php | |
@@ -58,7 +58,7 @@ abstract class JError | |
protected static $handlers = array( | |
E_NOTICE => array('mode' => 'message'), | |
E_WARNING => array('mode' => 'message'), | |
- E_ERROR => array('mode' => 'callback', 'options' => array('JError', 'customErrorPage')) | |
+ E_ERROR => array('mode' => 'die') | |
); | |
protected static $stack = array(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment