From 26073eac0c76cb3c6f6ee4a8688e0e1bada820ff Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 22 Mar 2018 13:20:03 +0100 Subject: Finally remove \OCP\JSON Signed-off-by: Roeland Jago Douma --- apps/user_ldap/ajax/wizard.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'apps/user_ldap') 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; } -- cgit v1.2.3