summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index b481f12a..1fc9485a 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -1252,10 +1252,11 @@ class TApplication extends TComponent
/**
* Flushes output to client side.
+ * @param boolean whether to continue buffering after flush if buffering was active
*/
- public function flushOutput()
+ public function flushOutput($continueBuffering = true)
{
- $this->getResponse()->flush();
+ $this->getResponse()->flush($continueBuffering);
}
/**
@@ -1264,6 +1265,7 @@ class TApplication extends TComponent
*/
public function onEndRequest()
{
+ $this->flushOutput(false); // flush all remaining content in the buffer
$this->saveGlobals(); // save global state
$this->raiseEvent('OnEndRequest',$this,null);
}