Skip to content

Commit 6a19f00

Browse files
Поддержка contentType
$this->contentTypes всегда равен NULL. Кто ввёл эту переменную и зачем разбираться некогда. Проверку выполняем по нормальному.
1 parent 0a5ddf9 commit 6a19f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/includes/document.parser.class.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ public function outputContent($noEvent = false)
937937

938938
// send out content-type and content-disposition headers
939939
if (IN_PARSER_MODE == "true") {
940-
$type = !empty ($this->contentTypes[$this->documentIdentifier]) ? $this->contentTypes[$this->documentIdentifier] : "text/html";
940+
$type = !empty ($this->documentObject["contentType"]) ? $this->documentObject["contentType"] : "text/html";
941941
header('Content-Type: ' . $type . '; charset=' . $this->config['modx_charset']);
942942
// if (($this->documentIdentifier == $this->config['error_page']) || $redirect_error)
943943
// header('HTTP/1.0 404 Not Found');

0 commit comments

Comments
 (0)