diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-10-08 18:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 18:44:55 +0200 |
commit | 90cb3e3cc6c0d5fbd04edb4e2d77b788d8e67e3d (patch) | |
tree | 881ee6189ef75447d4a919fa1ab592bf50b02c12 | |
parent | 0beecbf2c5723d6ff3fabb884a1eb35d80e0aac9 (diff) | |
parent | a48aed2ee927677a408b79139346df6af32d04eb (diff) | |
download | nextcloud-server-90cb3e3cc6c0d5fbd04edb4e2d77b788d8e67e3d.tar.gz nextcloud-server-90cb3e3cc6c0d5fbd04edb4e2d77b788d8e67e3d.zip |
Merge pull request #1661 from nextcloud/fix_1659
use older php array syntax in index.php
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php index 903b1fd6a76..ce4cdf06e7e 100644 --- a/index.php +++ b/index.php @@ -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); } |