openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 487ebdf3b58738df3e6c31a7d09f6f4cb426afc6
parent 352eed733e1fc7e66409dbf1501de5bd8ed9028e
Author: dankert <openrat@jandankert.de>
Date:   Sat, 19 Mar 2022 01:47:45 +0100

Fix: Preview actions should set their content type itself.

Diffstat:
Mmodules/cms/output/PreviewOutput.class.php | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/cms/output/PreviewOutput.class.php b/modules/cms/output/PreviewOutput.class.php @@ -22,4 +22,9 @@ class PreviewOutput extends UIOutput echo $data['output']['value']; } + + public function getContentType() + { + return null; // the content type is set by the action itself. + } }