Changed this to action. THANKS zach!

This commit is contained in:
Sarven Capadisli 2009-11-19 20:52:42 +00:00
parent 8971a12f89
commit 78c6056133

View File

@ -188,12 +188,12 @@ class MobileProfilePlugin extends WAP20Plugin
header('Content-Type: '.$type); header('Content-Type: '.$type);
$this->extraHeaders(); $action->extraHeaders();
if (preg_match("/.*\/.*xml/", $type)) { if (preg_match("/.*\/.*xml/", $type)) {
// Required for XML documents // Required for XML documents
$this->xw->startDocument('1.0', 'UTF-8'); $action->xw->startDocument('1.0', 'UTF-8');
} }
$this->xw->writeDTD('html', $action->xw->writeDTD('html',
'-//WAPFORUM//DTD XHTML Mobile 1.0//EN', '-//WAPFORUM//DTD XHTML Mobile 1.0//EN',
$this->DTD); $this->DTD);