diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 13:19:29 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 13:19:29 +0100 |
commit | 3dac15a8911fea1e8473af7e7a26d7a57e68328b (patch) | |
tree | eaf7dca00a5b171f2d2336c93a53bd486e2c19d3 /apps/user_ldap/ajax/clearMappings.php | |
parent | f843b7edfe7b3bc6e45d4610778d2df98b3985e3 (diff) | |
download | nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.tar.gz nextcloud-server-3dac15a8911fea1e8473af7e7a26d7a57e68328b.zip |
Move calls to \OCP\JSON to private \OC_JSON
They should be properly fixed at some point.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap/ajax/clearMappings.php')
-rw-r--r-- | apps/user_ldap/ajax/clearMappings.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/ajax/clearMappings.php b/apps/user_ldap/ajax/clearMappings.php index 4ec03307296..01b6b7f0ef2 100644 --- a/apps/user_ldap/ajax/clearMappings.php +++ b/apps/user_ldap/ajax/clearMappings.php @@ -27,9 +27,9 @@ use OCA\User_LDAP\Mapping\UserMapping; use OCA\User_LDAP\Mapping\GroupMapping; // Check user and app status -OCP\JSON::checkAdminUser(); -OCP\JSON::checkAppEnabled('user_ldap'); -OCP\JSON::callCheck(); +\OC_JSON::checkAdminUser(); +\OC_JSON::checkAppEnabled('user_ldap'); +\OC_JSON::callCheck(); $subject = (string)$_POST['ldap_clear_mapping']; $mapping = null; @@ -43,7 +43,7 @@ try { $l = \OC::$server->getL10N('user_ldap'); throw new \Exception($l->t('Failed to clear the mappings.')); } - OCP\JSON::success(); + \OC_JSON::success(); } catch (\Exception $e) { - OCP\JSON::error(array('message' => $e->getMessage())); + \OC_JSON::error(array('message' => $e->getMessage())); } |