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 | |
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')
-rw-r--r-- | apps/files_external/ajax/applicable.php | 2 | ||||
-rw-r--r-- | apps/files_versions/ajax/getVersions.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/ajax/wizard.php | 18 |
3 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_external/ajax/applicable.php b/apps/files_external/ajax/applicable.php index eb0f754870d..a946962a293 100644 --- a/apps/files_external/ajax/applicable.php +++ b/apps/files_external/ajax/applicable.php @@ -51,4 +51,4 @@ foreach (\OC::$server->getUserManager()->searchDisplayName($pattern, $limit, $of $results = array('groups' => $groups, 'users' => $users); -\\OC_JSON::success($results); +\OC_JSON::success($results); diff --git a/apps/files_versions/ajax/getVersions.php b/apps/files_versions/ajax/getVersions.php index 6bba0a540c6..5811242c236 100644 --- a/apps/files_versions/ajax/getVersions.php +++ b/apps/files_versions/ajax/getVersions.php @@ -47,10 +47,10 @@ if( $versions ) { unset($version['path']); } - \\OC_JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); + \OC_JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); } else { - \\OC_JSON::success(array('data' => array('versions' => [], 'endReached' => true))); + \OC_JSON::success(array('data' => array('versions' => [], 'endReached' => true))); } 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; } |