Skip to content

Commit

Permalink
Proxy to a higher error handler if there is one available
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Feb 11, 2018
1 parent fadafae commit 37b9833
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 @@ -246,6 +246,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 37b9833

Please sign in to comment.