From 825c966af7cdabde046e2b10b93b51cd5e8e0541 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 11 Nov 2011 17:18:27 +0100 Subject: [PATCH] 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 --- .../files/lib/system/exception/SystemException.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ''; -- 2.20.1