Temporarily "fix" exception handling for AJAX requests
authorMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 13:22:18 +0000 (14:22 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 13:22:18 +0000 (14:22 +0100)
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php

index a0041c72c98c68190e3efd979d82347d46286f0c..0b0ae9d8e99e309e85ce8b7623747137e36067f8 100644 (file)
@@ -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());
                }