diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 13:19:29 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 13:19:29 +0100 |
commit | 3dac15a8911fea1e8473af7e7a26d7a57e68328b (patch) | |
tree | eaf7dca00a5b171f2d2336c93a53bd486e2c19d3 /apps/files/ajax | |
parent | f843b7edfe7b3bc6e45d4610778d2df98b3985e3 (diff) | |
download | nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.tar.gz nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.zip |
Move calls to \OCP\JSON to private \OC_JSON
They should be properly fixed at some point.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/list.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php index 951377abf86..c013733dbb3 100644 --- a/apps/files/ajax/list.php +++ b/apps/files/ajax/list.php @@ -27,7 +27,7 @@ use OCP\Files\StorageNotAvailableException; use OCP\Files\StorageInvalidException; -OCP\JSON::checkLoggedIn(); +\OC_JSON::checkLoggedIn(); \OC::$server->getSession()->close(); $l = \OC::$server->getL10N('files'); @@ -79,10 +79,10 @@ try { $data['files'] = \OCA\Files\Helper::formatFileInfos($files); $data['permissions'] = $permissions; - OCP\JSON::success(array('data' => $data)); + \OC_JSON::success(array('data' => $data)); } catch (\OCP\Files\StorageNotAvailableException $e) { \OC::$server->getLogger()->logException($e, ['app' => 'files']); - OCP\JSON::error([ + \OC_JSON::error([ 'data' => [ 'exception' => StorageNotAvailableException::class, 'message' => $l->t('Storage is temporarily not available') @@ -90,7 +90,7 @@ try { ]); } catch (\OCP\Files\StorageInvalidException $e) { \OC::$server->getLogger()->logException($e, ['app' => 'files']); - OCP\JSON::error(array( + \OC_JSON::error(array( 'data' => array( 'exception' => StorageInvalidException::class, 'message' => $l->t('Storage invalid') @@ -98,7 +98,7 @@ try { )); } catch (\Exception $e) { \OC::$server->getLogger()->logException($e, ['app' => 'files']); - OCP\JSON::error(array( + \OC_JSON::error(array( 'data' => array( 'exception' => \Exception::class, 'message' => $l->t('Unknown error') |