summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/disableapp.php4
-rw-r--r--settings/ajax/installapp.php3
-rw-r--r--settings/ajax/uninstallapp.php3
3 files changed, 4 insertions, 6 deletions
diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php
index 263e2c27479..c1e5bc8eac7 100644
--- a/settings/ajax/disableapp.php
+++ b/settings/ajax/disableapp.php
@@ -1,5 +1,5 @@
<?php
-OC_JSON::checkAdminUser();
+OCP\JSON::checkAdminUser();
OCP\JSON::callCheck();
if (!array_key_exists('appid', $_POST)) {
@@ -11,4 +11,4 @@ $appId = $_POST['appid'];
$appId = OC_App::cleanAppId($appId);
OC_App::disable($appId);
-OC_JSON::success(); \ No newline at end of file
+OC_JSON::success();
diff --git a/settings/ajax/installapp.php b/settings/ajax/installapp.php
index 960080d7a7b..47f40f2b0cd 100644
--- a/settings/ajax/installapp.php
+++ b/settings/ajax/installapp.php
@@ -1,6 +1,5 @@
<?php
-
-OC_JSON::checkAdminUser();
+OCP\JSON::checkAdminUser();
OCP\JSON::callCheck();
if (!array_key_exists('appid', $_POST)) {
diff --git a/settings/ajax/uninstallapp.php b/settings/ajax/uninstallapp.php
index 11241571e85..5c6371dc16f 100644
--- a/settings/ajax/uninstallapp.php
+++ b/settings/ajax/uninstallapp.php
@@ -1,6 +1,5 @@
<?php
-
-OC_JSON::checkAdminUser();
+OCP\JSON::checkAdminUser();
OCP\JSON::callCheck();
if (!array_key_exists('appid', $_POST)) {