diff options
author | Brenda Wallace <shiny@cpan.org> | 2009-12-08 23:45:54 +0000 |
---|---|---|
committer | Brenda Wallace <shiny@cpan.org> | 2009-12-08 23:45:54 +0000 |
commit | a5c11cc92a277c3af6f9b18b1ffaf6dc5f90f5cc (patch) | |
tree | 3d045ddb4d64471c07b48c1e7e40ca4fc061b764 /lib/xmloutputter.php | |
parent | ce46cce73ef8e1c60888755586919afdf9afee14 (diff) | |
parent | 21757186e9a7ffd2e3330fd4ef61ffeb2dc0229b (diff) |
Merge commit 'origin/0.9.x' into 0.9.x
Diffstat (limited to 'lib/xmloutputter.php')
-rw-r--r-- | lib/xmloutputter.php | 5 |
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); } |