diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-26 18:04:14 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-26 18:06:28 +0400 |
commit | 83eda192a2c21c84c6565280013a894573164a89 (patch) | |
tree | 5800f52c60f6054b8a1c86e18bcf218f71e16e1f /core/FrontController.php | |
parent | 916142c962dee9ea5d910982828d585c21906f48 (diff) |
Display output buffer if controller method returns output in FrontController::fetchDispatch.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r-- | core/FrontController.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |