From 83eda192a2c21c84c6565280013a894573164a89 Mon Sep 17 00:00:00 2001 From: diosmosis <benakamoorthi@fastmail.fm> Date: Wed, 26 Mar 2014 14:04:14 +0000 Subject: [PATCH] Display output buffer if controller method returns output in FrontController::fetchDispatch. --- core/FrontController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/FrontController.php b/core/FrontController.php index cff68dd7c1..53227f886a 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -153,6 +153,9 @@ class FrontController extends Singleton // if nothing returned we try to load something that was printed on the screen if (empty($output)) { $output = ob_get_contents(); + } else { + // if something was returned, flush output buffer as it is meant to be written to the screen + ob_flush(); } ob_end_clean(); return $output; -- GitLab