From: Matthias Schmidt Date: Mon, 21 Dec 2015 13:22:18 +0000 (+0100) Subject: Temporarily "fix" exception handling for AJAX requests X-Git-Tag: 3.0.0_Beta_1~2087 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e640da42e27051c5d2ff3b66f471ab8c07f4657;p=GitHub%2FWoltLab%2FWCF.git Temporarily "fix" exception handling for AJAX requests --- diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index a0041c72c9..0b0ae9d8e9 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -158,7 +158,8 @@ class AJAXInvokeAction extends AbstractSecureAction { throw $e; } // TODO: This needs to be updated to the new exception handling code. - throw new \Exception('TODO: AJAXInvokeAction::throwException()'); + throw $e; + //throw new \Exception('TODO: AJAXInvokeAction::throwException()'); if ($e instanceof InvalidSecurityTokenException) { throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.sessionExpired'), AJAXException::SESSION_EXPIRED, $e->getTraceAsString()); }