diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-02-20 11:01:30 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:53:52 +0200 |
commit | 86d3cf53d1a7b894a91f1191b461ec4dcbb749e8 (patch) | |
tree | eae7a85f3e748b4caa1ab5c946b3784d80c20a7b /settings/ajax | |
parent | ed1a23c9a254a4322fded5a8377cb9bfa9b18500 (diff) | |
download | nextcloud-server-86d3cf53d1a7b894a91f1191b461ec4dcbb749e8.tar.gz nextcloud-server-86d3cf53d1a7b894a91f1191b461ec4dcbb749e8.zip |
Let's switch to OCP\JSON
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/createuser.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index 946081e566a..4f0424754af 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -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()))); } |