We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5ddf9 commit 6a19f00Copy full SHA for 6a19f00
manager/includes/document.parser.class.inc.php
@@ -937,7 +937,7 @@ public function outputContent($noEvent = false)
937
938
// send out content-type and content-disposition headers
939
if (IN_PARSER_MODE == "true") {
940
- $type = !empty ($this->contentTypes[$this->documentIdentifier]) ? $this->contentTypes[$this->documentIdentifier] : "text/html";
+ $type = !empty ($this->documentObject["contentType"]) ? $this->documentObject["contentType"] : "text/html";
941
header('Content-Type: ' . $type . '; charset=' . $this->config['modx_charset']);
942
// if (($this->documentIdentifier == $this->config['error_page']) || $redirect_error)
943
// header('HTTP/1.0 404 Not Found');
0 commit comments