fix problem with uninitialized xw object

darcs-hash:20080520181040-84dde-eb1692baeb910ce86abc912e3196bae14ad3fd55.gz
This commit is contained in:
Evan Prodromou 2008-05-20 14:10:40 -04:00
parent 73469e9bb1
commit 070eacb2e7

View File

@ -71,8 +71,8 @@ function common_show_header($pagetitle) {
header('Content-Type: application/xhtml+xml'); header('Content-Type: application/xhtml+xml');
$xw = new XMLWriter(); $xw = new XMLWriter();
$xw->setIndent(true);
$xw->openURI('php://output'); $xw->openURI('php://output');
$xw->setIndent(true);
$xw->startDocument('1.0', 'UTF-8'); $xw->startDocument('1.0', 'UTF-8');
$xw->writeDTD('html', '-//W3C//DTD XHTML 1.0 Strict//EN', $xw->writeDTD('html', '-//W3C//DTD XHTML 1.0 Strict//EN',
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');