diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php index 1ce80b17880..75511de12e1 100644 --- a/index.php +++ b/index.php @@ -48,9 +48,8 @@ try { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); } catch (\OC\HintException $ex) { - OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); try { - OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); + OC_Template::printErrorPage($ex->getMessage(), $ex->getHint(), OC_Response::STATUS_SERVICE_UNAVAILABLE); } catch (Exception $ex2) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); \OC::$server->getLogger()->logException($ex2, array('app' => 'index')); @@ -60,8 +59,7 @@ try { OC_Template::printExceptionErrorPage($ex); } } catch (\OC\User\LoginException $ex) { - OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); - OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage()); + OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), OC_Response::STATUS_FORBIDDEN); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); |