summaryrefslogtreecommitdiffstats
path: root/lib/private/api.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-18 10:30:02 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-18 10:30:02 +0200
commit3f3f8c2f99e04586424dcbc845e0b73614b9a8bd (patch)
tree858de94992595ab3dcdf05706df443722d113a09 /lib/private/api.php
parent6ce1abfa5c273c657cde1a52fb0fdd3ca450e2c6 (diff)
downloadnextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.tar.gz
nextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.zip
Fix usage of deprecated private constants
Diffstat (limited to 'lib/private/api.php')
-rw-r--r--lib/private/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index f8fd4fbb5aa..dd50162f03e 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -188,7 +188,7 @@ class OC_API {
// Which shipped response do we use if they all failed?
// They may have failed for different reasons (different status codes)
// Which response code should we return?
- // Maybe any that are not OC_API::RESPOND_SERVER_ERROR
+ // Maybe any that are not \OCP\API::RESPOND_SERVER_ERROR
// Merge failed responses if more than one
$data = array();
foreach($shipped['failed'] as $failure) {
@@ -400,7 +400,7 @@ class OC_API {
* Based on the requested format the response content type is set
*/
public static function setContentType() {
- $format = \OC_API::requestedFormat();
+ $format = self::requestedFormat();
if ($format === 'xml') {
header('Content-type: text/xml; charset=UTF-8');
return;