diff options
author | brantje <brantje@gmail.com> | 2017-01-03 23:12:24 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-01-03 23:33:00 +0300 |
commit | f30f986d608133facd61920bf4a6a64dd75ae99a (patch) | |
tree | 85296a07b81340ba00b9802cded29d5b45439d12 /controller | |
parent | 0de232ffabe62971a9c108e36dd376fd833c07d2 (diff) |
Fix if statements
Diffstat (limited to 'controller')
-rw-r--r-- | controller/filecontroller.php | 2 | ||||
-rw-r--r-- | controller/translationcontroller.php | 2 | ||||
-rw-r--r-- | controller/vaultcontroller.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/controller/filecontroller.php b/controller/filecontroller.php index d3c29ea5..368e1c87 100644 --- a/controller/filecontroller.php +++ b/controller/filecontroller.php @@ -59,7 +59,7 @@ class FileController extends ApiController { return new JSONResponse($this->fileService->deleteFile($file_id, $this->userId)); } - public function updateFile($file_id, $file_data, $filename, $mimetype, $size){ + public function updateFile($file_id, $file_data, $filename){ try{ $file = $this->fileService->getFile($file_id, $this->userId); } catch (\Exception $doesNotExistException){ diff --git a/controller/translationcontroller.php b/controller/translationcontroller.php index 96659e98..088f310a 100644 --- a/controller/translationcontroller.php +++ b/controller/translationcontroller.php @@ -33,7 +33,7 @@ class TranslationController extends ApiController { * @NoCSRFRequired * @PublicPage */ - public function getLanguageStrings($lang) { + public function getLanguageStrings() { $translations = array( // js/app/controllers/bookmarklet.js 'generating.sharing.keys' => $this->trans->t('Generating sharing keys ( %step / 2)'), diff --git a/controller/vaultcontroller.php b/controller/vaultcontroller.php index c206a39e..4891aa6c 100644 --- a/controller/vaultcontroller.php +++ b/controller/vaultcontroller.php @@ -149,6 +149,6 @@ class VaultController extends ApiController { * @NoCSRFRequired */ public function delete($vault_id) { - return; + return new JSONResponse($vault_id); } }
\ No newline at end of file |