From 80b649c471247296d4034dfd891a9e9f3abf1c06 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 19 Jul 2017 15:50:59 +0200 Subject: Suppress deprecated function in \OCP\JSON Signed-off-by: Lukas Reschke --- ocs/providers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ocs/providers.php') diff --git a/ocs/providers.php b/ocs/providers.php index 9efca14768e..1961a68ec2d 100644 --- a/ocs/providers.php +++ b/ocs/providers.php @@ -34,7 +34,7 @@ $url = $request->getServerProtocol() . '://' . substr($request->getServerHost() $writer = new XMLWriter(); $writer->openURI('php://output'); $writer->startDocument('1.0','UTF-8'); -$writer->setIndent(4); +$writer->setIndent(true); $writer->startElement('providers'); $writer->startElement('provider'); $writer->writeElement('id', 'ownCloud'); -- cgit v1.2.3