aboutsummaryrefslogtreecommitdiff
path: root/engine/handlers/cron_handler.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-31 12:12:27 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-31 12:12:27 +0000
commit1195ed3a69f40976977520f1cefac98cc614a319 (patch)
treeb1434f7ccf678b439f14ec465aca4553e82bc842 /engine/handlers/cron_handler.php
parent0213b10b271be7bc8c3f8c8e7253164b08e7a618 (diff)
downloadelgg-1195ed3a69f40976977520f1cefac98cc614a319.tar.gz
elgg-1195ed3a69f40976977520f1cefac98cc614a319.tar.bz2
Changed cron to use output buffering (letting you simply echo rather than needing to pass variables around)
git-svn-id: https://code.elgg.org/elgg/trunk@2374 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/handlers/cron_handler.php')
-rw-r--r--engine/handlers/cron_handler.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/engine/handlers/cron_handler.php b/engine/handlers/cron_handler.php
index acc24541c..816fb2c51 100644
--- a/engine/handlers/cron_handler.php
+++ b/engine/handlers/cron_handler.php
@@ -27,8 +27,13 @@
// Trigger hack
$std_out = ""; // Data to return to
- $std_out = trigger_plugin_hook('cron', $period, $params, $std_out);
+ $old_stdout = "";
+ ob_start();
+
+ $old_stdout = trigger_plugin_hook('cron', $period, $params, $old_stdout);
+
+ $std_out = ob_get_clean();
// Return event
- echo $std_out;
+ echo $std_out . $old_stdout;
?> \ No newline at end of file