[BUGFIX] Setting content type for pagetype 5000
This commit is contained in:
parent
5e7953acde
commit
b7f93518d0
@ -662,10 +662,9 @@ class ActionController extends BaseController
|
||||
} else {
|
||||
$this->response->setStatus($this->responseStatus);
|
||||
}
|
||||
$this->response->setHeader(
|
||||
'Content-type',
|
||||
'application/json'
|
||||
);
|
||||
if ($this->pageType == $this->ajaxPageType) {
|
||||
$GLOBALS['TSFE']->setContentType('application/json');
|
||||
}
|
||||
unset($result['data']);
|
||||
if ($this->redirect) {
|
||||
$result['redirect'] = $this->redirect;
|
||||
|
Loading…
x
Reference in New Issue
Block a user