]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use OCP\JSON instead of OC_JSON
authorLukas Reschke <lukas@statuscode.ch>
Thu, 20 Feb 2014 10:00:44 +0000 (11:00 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:52 +0000 (12:53 +0200)
settings/ajax/changegroupname.php

index 1d9c24b6b35f1004e7ab4da2ebad4ffd44d20840..a70440c0e4ee81e210ed71da03c2874c1c9e6444 100644 (file)
@@ -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"))));
 }