<?php
OCP\JSON::callCheck();
-OC_JSON::checkSubAdminUser();
+OCP\JSON::checkSubAdminUser();
if(OC_User::isAdminUser(OC_User::getUser())) {
$groups = array();
$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,
"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())));
}