Merge pull request #1661 from nextcloud/fix_1659
use older php array syntax in index.php
This commit is contained in:
commit
90cb3e3cc6
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ try {
|
|||
OC::handleRequest();
|
||||
|
||||
} catch(\OC\ServiceUnavailableException $ex) {
|
||||
\OC::$server->getLogger()->logException($ex, ['app' => 'index']);
|
||||
\OC::$server->getLogger()->logException($ex, array('app' => 'index'));
|
||||
|
||||
//show the user a detailed error page
|
||||
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
|
||||
|
@ -49,13 +49,13 @@ try {
|
|||
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
|
||||
OC_Template::printErrorPage($ex->getMessage(), $ex->getHint());
|
||||
} catch (Exception $ex) {
|
||||
\OC::$server->getLogger()->logException($ex, ['app' => 'index']);
|
||||
\OC::$server->getLogger()->logException($ex, array('app' => 'index'));
|
||||
|
||||
//show the user a detailed error page
|
||||
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
|
||||
OC_Template::printExceptionErrorPage($ex);
|
||||
} catch (Error $ex) {
|
||||
\OC::$server->getLogger()->logException($ex, ['app' => 'index']);
|
||||
\OC::$server->getLogger()->logException($ex, array('app' => 'index'));
|
||||
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
|
||||
OC_Template::printExceptionErrorPage($ex);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue