From: Tim Düsterhus Date: Fri, 11 Nov 2011 16:18:27 +0000 (+0100) Subject: Adding possibility to show a user-defined page for the SystemException X-Git-Tag: 2.0.0_Beta_1~1459^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=825c966af7cdabde046e2b10b93b51cd5e8e0541;p=GitHub%2FWoltLab%2FWCF.git Adding possibility to show a user-defined page for the SystemException You can show a self-designed page now. Just add SYSTEMEXCEPTION_FILE to your config.inc.php in WCF or application --- diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 312c246996..9bfa2e41af 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -72,6 +72,12 @@ class SystemException extends LoggedException implements IPrintableException { // send status code @header('HTTP/1.1 503 Service Unavailable'); + // show user-defined system-exception + if (defined('SYSTEMEXCEPTION_FILE') && file_exists(SYSTEMEXCEPTION_FILE)) { + require(SYSTEMEXCEPTION_FILE); + return; + } + // print report echo '';