summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-02-20 11:00:44 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:52 +0200
commited1a23c9a254a4322fded5a8377cb9bfa9b18500 (patch)
tree642a0c7d0db283f686ea89827cca1a0bb43fb6dc /settings/ajax
parent8a8800203e33fd95cd479997f9a0e4397e0e61cc (diff)
downloadnextcloud-server-ed1a23c9a254a4322fded5a8377cb9bfa9b18500.tar.gz
nextcloud-server-ed1a23c9a254a4322fded5a8377cb9bfa9b18500.zip
Use OCP\JSON instead of OC_JSON
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/changegroupname.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/changegroupname.php b/settings/ajax/changegroupname.php
index 1d9c24b6b35..a70440c0e4e 100644
--- a/settings/ajax/changegroupname.php
+++ b/settings/ajax/changegroupname.php
@@ -1,7 +1,7 @@
<?php
OCP\JSON::callCheck();
-OC_JSON::checkLoggedIn();
+OCP\JSON::checkLoggedIn();
OCP\JSON::checkAdminUser();
$l=OC_L10N::get('core');
@@ -12,7 +12,7 @@ $groupname = $_POST["groupname"];
// TODO : make changes to the API to allow this.
// setGroupname doesnt exist yet.
if(OC_Group::setGroupname($groupname)) {
- OC_JSON::success(
+ OCP\JSON::success(
array("data" => array(
"message" => $l->t('Group name has been changed.'),
"groupname" => $groupname,
@@ -20,5 +20,5 @@ if(OC_Group::setGroupname($groupname)) {
)
);
} else {
- OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change group name"))));
+ OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to change group name"))));
}