aboutsummaryrefslogtreecommitdiff
path: root/engine/handlers/cron_handler.php
diff options
context:
space:
mode:
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