Skip to content

Commit

Permalink
Proxy to a higher error handler if there is one available (#19645)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored and Michael Babker committed Feb 26, 2018
1 parent 7f4b9c1 commit 1735101
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/system/redirect/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ private static function doErrorHandling($error)
}
}

JErrorPage::render($error);
// Proxy to the previous exception handler if available, otherwise just render the error page
if (self::$previousExceptionHandler)
{
call_user_func_array(self::$previousExceptionHandler, array($error));
}
else
{
JErrorPage::render($error);
}
}
}

0 comments on commit 1735101

Please sign in to comment.