summaryrefslogtreecommitdiff
path: root/lib/xmloutputter.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-12-08 23:45:54 +0000
committerBrenda Wallace <shiny@cpan.org>2009-12-08 23:45:54 +0000
commita5c11cc92a277c3af6f9b18b1ffaf6dc5f90f5cc (patch)
tree3d045ddb4d64471c07b48c1e7e40ca4fc061b764 /lib/xmloutputter.php
parentce46cce73ef8e1c60888755586919afdf9afee14 (diff)
parent21757186e9a7ffd2e3330fd4ef61ffeb2dc0229b (diff)
Merge commit 'origin/0.9.x' into 0.9.x
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);
}