[Pkg-owncloud-commits] [owncloud] 17/55: fixing method names
David Prévot
taffit at moszumanska.debian.org
Wed Apr 23 19:51:58 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v5.0.16RC1
in repository owncloud.
commit 4721b545c41c22d5abf6753e9534c0a103d09d4c
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Wed Mar 12 10:00:22 2014 +0100
fixing method names
---
lib/api.php | 2 +-
ocs/v1.php | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/api.php b/lib/api.php
index b23e94f..38d318a 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -300,7 +300,7 @@ class OC_API {
/**
* Based on the requested format the response content type is set
*/
- public static function setOcsContentType() {
+ public static function setContentType() {
$format = \OC_API::requestedFormat();
if ($format === 'xml') {
header('Content-type: text/xml; charset=UTF-8');
diff --git a/ocs/v1.php b/ocs/v1.php
index 2aa40b2..c7ca416 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -31,7 +31,6 @@ try {
OC_API::setContentType();
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {
- setOcsContentType();
OC_API::setContentType();
OC_Response::setStatus(405);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list