aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes
diff options
context:
space:
mode:
Diffstat (limited to 'include/classes')
-rw-r--r--include/classes/BigPipe/BigPipe.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/classes/BigPipe/BigPipe.php b/include/classes/BigPipe/BigPipe.php
index c5f33e3..6e4c7f4 100644
--- a/include/classes/BigPipe/BigPipe.php
+++ b/include/classes/BigPipe/BigPipe.php
@@ -42,13 +42,9 @@ class BigPipe {
#===============================================================================
# Prints a single pagelet response
#===============================================================================
- private static function singleResponse(Pagelet $Pagelet, $last = FALSE) {
+ private static function singleResponse(Pagelet $Pagelet) {
$pageletJSON = $Pagelet->getStructure();
- if($last) {
- $pageletJSON['IS_LAST'] = TRUE;
- }
-
$pageletHTML = removeLineBreaksAndTabs($Pagelet->getHTML());
$pageletHTML = str_replace('--', '--', $pageletHTML);
@@ -100,11 +96,15 @@ class BigPipe {
}
else {
- self::singleResponse($Pagelet, (count(self::$pagelets) === ++$i));
+ self::singleResponse($Pagelet);
self::flushOutputBuffer();
}
}
}
+
+ if(BigPipe::enabled()) {
+ echo "<script>BigPipe.onLastPageletArrived();</script>\n";
+ }
}
}
?> \ No newline at end of file