summaryrefslogtreecommitdiffstats
path: root/lib/ocs.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-14 22:54:48 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-14 22:54:48 +0100
commit4b80466880b4e2daf25e38d621a0ebac608d335d (patch)
treedfdcac5eb81cea7853d16c50ea3043c4642f3c15 /lib/ocs.php
parent78a3625ddfc67e7e6743a2ff6fd31e1566b174c8 (diff)
parent9058d398a7b9aac58ab4aa7379e13ca83c72281d (diff)
downloadnextcloud-server-4b80466880b4e2daf25e38d621a0ebac608d335d.tar.gz
nextcloud-server-4b80466880b4e2daf25e38d621a0ebac608d335d.zip
Merge branch 'master' into master-sqlserver
Conflicts: lib/db.php lib/files/cache/cache.php lib/files/cache/legacy.php lib/setup.php
Diffstat (limited to 'lib/ocs.php')
-rw-r--r--lib/ocs.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/ocs.php b/lib/ocs.php
index 879aaa76687..93e8931ce2e 100644
--- a/lib/ocs.php
+++ b/lib/ocs.php
@@ -87,9 +87,10 @@ class OC_OCS {
}
$format = self::readData($method, 'format', 'text', '');
- $txt='Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
+ $txt='Invalid query, please check the syntax. API specifications are here:'
+ .' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
$txt.=OC_OCS::getDebugOutput();
- echo(OC_OCS::generateXml($format,'failed',999,$txt));
+ echo(OC_OCS::generateXml($format, 'failed', 999, $txt));
}
@@ -122,7 +123,8 @@ class OC_OCS {
* @param int $itemsperpage
* @return string xml/json
*/
- private static function generateXml($format, $status, $statuscode, $message, $data=array(), $tag='', $tagattribute='', $dimension=-1, $itemscount='', $itemsperpage='') {
+ private static function generateXml($format, $status, $statuscode,
+ $message, $data=array(), $tag='', $tagattribute='', $dimension=-1, $itemscount='', $itemsperpage='') {
if($format=='json') {
$json=array();
$json['status']=$status;
@@ -173,7 +175,7 @@ class OC_OCS {
}
}
xmlwriter_end_element($writer);
- }
+ }
xmlwriter_end_element($writer);
}elseif($dimension=='3') {