diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-22 13:20:03 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-23 08:50:17 +0100 |
commit | 26073eac0c76cb3c6f6ee4a8688e0e1bada820ff (patch) | |
tree | 829faad3a7e090b0e146151254c5fcdf8e37d6e5 /apps/user_ldap/ajax | |
parent | 3dac15a8911fea1e8473af7e7a26d7a57e68328b (diff) | |
download | nextcloud-server-26073eac0c76cb3c6f6ee4a8688e0e1bada820ff.tar.gz nextcloud-server-26073eac0c76cb3c6f6ee4a8688e0e1bada820ff.zip |
Finally remove \OCP\JSON
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap/ajax')
-rw-r--r-- | apps/user_ldap/ajax/wizard.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php index f0ce8f87c39..df178ac0a82 100644 --- a/apps/user_ldap/ajax/wizard.php +++ b/apps/user_ldap/ajax/wizard.php @@ -36,13 +36,13 @@ $l = \OC::$server->getL10N('user_ldap'); if(!isset($_POST['action'])) { - \\OC_JSON::error(array('message' => $l->t('No action specified'))); + \OC_JSON::error(array('message' => $l->t('No action specified'))); } $action = (string)$_POST['action']; if(!isset($_POST['ldap_serverconfig_chooser'])) { - \\OC_JSON::error(array('message' => $l->t('No configuration specified'))); + \OC_JSON::error(array('message' => $l->t('No configuration specified'))); } $prefix = (string)$_POST['ldap_serverconfig_chooser']; @@ -98,10 +98,10 @@ switch($action) { exit; } } catch (\Exception $e) { - \\OC_JSON::error(array('message' => $e->getMessage(), 'code' => $e->getCode())); + \OC_JSON::error(array('message' => $e->getMessage(), 'code' => $e->getCode())); exit; } - \\OC_JSON::error(); + \OC_JSON::error(); exit; break; @@ -114,10 +114,10 @@ switch($action) { exit; } } catch (\Exception $e) { - \\OC_JSON::error(array('message' => $e->getMessage())); + \OC_JSON::error(array('message' => $e->getMessage())); exit; } - \\OC_JSON::error(); + \OC_JSON::error(); exit; break; } @@ -126,14 +126,14 @@ switch($action) { $key = isset($_POST['cfgkey']) ? $_POST['cfgkey'] : false; $val = isset($_POST['cfgval']) ? $_POST['cfgval'] : null; if($key === false || is_null($val)) { - \\OC_JSON::error(array('message' => $l->t('No data specified'))); + \OC_JSON::error(array('message' => $l->t('No data specified'))); exit; } $cfg = array($key => $val); $setParameters = array(); $configuration->setConfiguration($cfg, $setParameters); if(!in_array($key, $setParameters)) { - \\OC_JSON::error(array('message' => $l->t($key. + \OC_JSON::error(array('message' => $l->t($key. ' Could not set configuration %s', $setParameters[0]))); exit; } @@ -144,6 +144,6 @@ switch($action) { \OC_JSON::success(); break; default: - \\OC_JSON::error(array('message' => $l->t('Action does not exist'))); + \OC_JSON::error(array('message' => $l->t('Action does not exist'))); break; } |