forked from GNUsocial/gnu-social
PHP5.5 fix: Better use of startXML for Action classes (mostly AJAX)
I had a problem with PHP5.5 that caused ajax responses to be empty. This fixes it, as the problem was related to pretty inconsistent calling to headers, XMLWriter::startDocument etc. etc.
This commit is contained in:
@@ -118,7 +118,7 @@ class HTMLOutputter extends XMLOutputter
|
||||
$this->extraHeaders();
|
||||
if (preg_match("/.*\/.*xml/", $type)) {
|
||||
// Required for XML documents
|
||||
$this->xw->startDocument('1.0', 'UTF-8');
|
||||
$this->startXML();
|
||||
}
|
||||
$this->xw->writeDTD('html',
|
||||
'-//W3C//DTD XHTML 1.0 Strict//EN',
|
||||
|
Reference in New Issue
Block a user