summaryrefslogtreecommitdiff
path: root/lib/xmloutputter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmloutputter.php')
-rw-r--r--lib/xmloutputter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/xmloutputter.php b/lib/xmloutputter.php
index 5f06e491d..15b18e7d9 100644
--- a/lib/xmloutputter.php
+++ b/lib/xmloutputter.php
@@ -67,10 +67,13 @@ class XMLOutputter
* @param boolean $indent Whether to indent output, default true
*/
- function __construct($output='php://output', $indent=true)
+ function __construct($output='php://output', $indent=null)
{
$this->xw = new XMLWriter();
$this->xw->openURI($output);
+ if(is_null($indent)) {
+ $indent = common_config('site', 'indent');
+ }
$this->xw->setIndent($indent);
}