]> source.dussan.org Git - nextcloud-server.git/commitdiff
Let's switch to OCP\JSON
authorLukas Reschke <lukas@statuscode.ch>
Thu, 20 Feb 2014 10:01:30 +0000 (11:01 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:52 +0000 (12:53 +0200)
settings/ajax/createuser.php

index 946081e566a5f8a2f45878c6e8238e407be8319c..4f0424754af19c56d5eee51724a824f6d7f844e2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 OCP\JSON::callCheck();
-OC_JSON::checkSubAdminUser();
+OCP\JSON::checkSubAdminUser();
 
 if(OC_User::isAdminUser(OC_User::getUser())) {
        $groups = array();
@@ -45,7 +45,7 @@ try {
 
        $userManager = \OC_User::getManager();
        $user = $userManager->get($username);
-       OC_JSON::success(array("data" =>
+       OCP\JSON::success(array("data" =>
                                array(
                                        // returns whether the home already existed
                                        "homeExists" => $homeExists,
@@ -53,5 +53,5 @@ try {
                                        "groups" => OC_Group::getUserGroups( $username ),
                                        'storageLocation' => $user->getHome())));
 } catch (Exception $exception) {
-       OC_JSON::error(array("data" => array( "message" => $exception->getMessage())));
+       OCP\JSON::error(array("data" => array( "message" => $exception->getMessage())));
 }