summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-24 22:12:36 +0000
committerctrlaltca@gmail.com <>2011-06-24 22:12:36 +0000
commit15f6747485b5912f657c2c0fce8f41c01c70d2ad (patch)
treed2621fd086e8da91313b8880a5ad524f8518aac3 /framework/TApplication.php
parenta0d269954534e09c0b9c0f73c927b6eb764c21d9 (diff)
merged in the patch for progressive rendering from #235; unit tests doesn't evidence any regression, but of course more proper testing is needed
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);
}