summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-22 13:19:29 +0100
commit3dac15a8911fea1e8473af7e7a26d7a57e68328b (patch)
treeeaf7dca00a5b171f2d2336c93a53bd486e2c19d3 /apps/files_external/ajax
parentf843b7edfe7b3bc6e45d4610778d2df98b3985e3 (diff)
downloadnextcloud-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_external/ajax')
-rw-r--r--apps/files_external/ajax/applicable.php8
-rw-r--r--apps/files_external/ajax/oauth2.php6
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_external/ajax/applicable.php b/apps/files_external/ajax/applicable.php
index 4ee922b63ac..eb0f754870d 100644
--- a/apps/files_external/ajax/applicable.php
+++ b/apps/files_external/ajax/applicable.php
@@ -21,10 +21,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-OCP\JSON::checkAppEnabled('files_external');
-OCP\JSON::callCheck();
+\OC_JSON::checkAppEnabled('files_external');
+\OC_JSON::callCheck();
-OCP\JSON::checkAdminUser();
+\OC_JSON::checkAdminUser();
$pattern = '';
$limit = null;
@@ -51,4 +51,4 @@ foreach (\OC::$server->getUserManager()->searchDisplayName($pattern, $limit, $of
$results = array('groups' => $groups, 'users' => $users);
-\OCP\JSON::success($results);
+\\OC_JSON::success($results);
diff --git a/apps/files_external/ajax/oauth2.php b/apps/files_external/ajax/oauth2.php
index 9a3f2e0af6a..8a6af8f8a40 100644
--- a/apps/files_external/ajax/oauth2.php
+++ b/apps/files_external/ajax/oauth2.php
@@ -22,9 +22,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-OCP\JSON::checkAppEnabled('files_external');
-OCP\JSON::checkLoggedIn();
-OCP\JSON::callCheck();
+\OC_JSON::checkAppEnabled('files_external');
+\OC_JSON::checkLoggedIn();
+\OC_JSON::callCheck();
$l = \OC::$server->getL10N('files_external');
// TODO: implement redirect to which storage backend requested this