From 832a18a46ada32a0b3f2d99d4f2c403daf7f3a5f Mon Sep 17 00:00:00 2001 From: sam marshall Date: Thu, 9 Mar 2017 11:21:35 +0000 Subject: [PATCH] MDL-58177 tasks: Refactor scheduled task gui to use NO_OUTPUT_BUFFERING --- admin/tool/task/schedule_task.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/admin/tool/task/schedule_task.php b/admin/tool/task/schedule_task.php index 53136f2463b..afb20b6d269 100644 --- a/admin/tool/task/schedule_task.php +++ b/admin/tool/task/schedule_task.php @@ -24,6 +24,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +define('NO_OUTPUT_BUFFERING', true); + require('../../../config.php'); require_once($CFG->libdir.'/cronlib.php'); @@ -36,12 +38,6 @@ require_once($CFG->libdir.'/cronlib.php'); */ function tool_task_mtrace_wrapper($message, $eol) { echo s($message . $eol); - // Both types of flush may be necessary in order to actually output progressively to browser. - // It depends on the theme. - if (ob_get_status()) { - ob_flush(); - } - flush(); } // Allow execution of single task. This requires login and has different rules.