Skip to content

Commit

Permalink
Update LegacyController.php
Browse files Browse the repository at this point in the history
prepend output buffer also when a ViewModel or Response is returned
  • Loading branch information
maglnet authored Feb 12, 2021
1 parent 1d5fcc0 commit 52213e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MaglLegacyApplication/Controller/LegacyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ private function runScript($scriptFileName)
$output = ob_get_clean();

if ($result instanceof ViewModel || $result instanceof Response) {
if ($this->options->getPrependOutputBufferToResponse()) {
echo $output;
}
return $result;
}

Expand Down

0 comments on commit 52213e9

Please sign in to comment.