summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-20 14:10:40 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-20 14:10:40 -0400
commit070eacb2e79f6d7bd7c1d4251aa49d53d0ce469f (patch)
tree47761b67246a6ce59f06f9371a07e014f04f530a /lib/util.php
parent73469e9bb109dca3ae6e2a739766adc6de5c6d67 (diff)
fix problem with uninitialized xw object
darcs-hash:20080520181040-84dde-eb1692baeb910ce86abc912e3196bae14ad3fd55.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 58ae330a9..8a05a346f 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -71,8 +71,8 @@ function common_show_header($pagetitle) {
header('Content-Type: application/xhtml+xml');
$xw = new XMLWriter();
- $xw->setIndent(true);
$xw->openURI('php://output');
+ $xw->setIndent(true);
$xw->startDocument('1.0', 'UTF-8');
$xw->writeDTD('html', '-//W3C//DTD XHTML 1.0 Strict//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');