diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-05-04 15:51:08 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-05-04 15:51:08 +0200 |
commit | 0b7d9e2668e3a2e2049eb84f9c49fac41d71d35e (patch) | |
tree | e68c70c2143dfbfa5be20af7efac929ce2ca034c /lib | |
parent | 9385b97b5f38ebf2ed85e740fe3c52f1e6117d49 (diff) | |
download | nextcloud-server-0b7d9e2668e3a2e2049eb84f9c49fac41d71d35e.tar.gz nextcloud-server-0b7d9e2668e3a2e2049eb84f9c49fac41d71d35e.zip |
Cleanup code a little bit
- Use OCP\Response constants instead of the HTTP error code
- Use checkAppEnabled() instead of OC_App::isEnabled with an if statement
- Remove uneeded variable $baseURL
- Rename $isvalid to $isValid
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/response.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/response.php b/lib/private/response.php index 1aa5e629b8b..19df9719dee 100644 --- a/lib/private/response.php +++ b/lib/private/response.php @@ -10,6 +10,7 @@ class OC_Response { const STATUS_FOUND = 304; const STATUS_NOT_MODIFIED = 304; const STATUS_TEMPORARY_REDIRECT = 307; + const STATUS_BAD_REQUEST = 400; const STATUS_NOT_FOUND = 404; const STATUS_INTERNAL_SERVER_ERROR = 500; const STATUS_SERVICE_UNAVAILABLE = 503; |