diff options
Diffstat (limited to 'apps/user_ldap/ajax/deleteConfiguration.php')
-rw-r--r-- | apps/user_ldap/ajax/deleteConfiguration.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/ajax/deleteConfiguration.php b/apps/user_ldap/ajax/deleteConfiguration.php index 220f4c13c4a..fa2ab36770f 100644 --- a/apps/user_ldap/ajax/deleteConfiguration.php +++ b/apps/user_ldap/ajax/deleteConfiguration.php @@ -27,15 +27,15 @@ */ // 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(); $prefix = (string)$_POST['ldap_serverconfig_chooser']; $helper = new \OCA\User_LDAP\Helper(\OC::$server->getConfig()); if($helper->deleteServerConfiguration($prefix)) { - OCP\JSON::success(); + \OC_JSON::success(); } else { $l = \OC::$server->getL10N('user_ldap'); - OCP\JSON::error(array('message' => $l->t('Failed to delete the server configuration'))); + \OC_JSON::error(array('message' => $l->t('Failed to delete the server configuration'))); } |