diff options
Diffstat (limited to 'settings/ajax/createuser.php')
-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()))); } |