diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-20 18:15:06 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-20 18:26:14 +0200 |
commit | 04674c06cca5884e6269461b2ae9a6e64a00953d (patch) | |
tree | fee4148cf9fc8166effe886b9574c8b3175543a0 /apps/encryption/controller | |
parent | 3f96662609a93f4da653c5962175ae42f4768fc1 (diff) | |
download | nextcloud-server-04674c06cca5884e6269461b2ae9a6e64a00953d.tar.gz nextcloud-server-04674c06cca5884e6269461b2ae9a6e64a00953d.zip |
Dont use the old .status way
Diffstat (limited to 'apps/encryption/controller')
-rw-r--r-- | apps/encryption/controller/settingscontroller.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/encryption/controller/settingscontroller.php b/apps/encryption/controller/settingscontroller.php index 1555ff0c654..7fa3f469a14 100644 --- a/apps/encryption/controller/settingscontroller.php +++ b/apps/encryption/controller/settingscontroller.php @@ -118,23 +118,14 @@ class SettingsController extends Controller { if ($result === true) { $this->session->setStatus(Session::INIT_SUCCESSFUL); return new DataResponse( - ['data' => [ - 'status' => 'success', - 'message' => (string) $this->l->t('Private key password successfully updated.'), - ], - ] + ['message' => (string) $this->l->t('Private key password successfully updated.')] ); } else { return new DataResponse( - ['data' => [ - 'message' => (string) $errorMessage, - ], - ], + ['message' => (string) $errorMessage], Http::STATUS_BAD_REQUEST ); } } - - } |