From 769cd8c4cc56cd95537d6819365c4fc9d4c84e60 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Fri, 15 Feb 2019 09:06:04 +0800 Subject: [PATCH] MDL-64863 tool_lp: Progress if needed Do not immediately show progress bars since most operations work in under a second. This will use the default timeout (5 seconds) before showing progress bars. --- admin/tool/lpimportcsv/classes/framework_importer.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin/tool/lpimportcsv/classes/framework_importer.php b/admin/tool/lpimportcsv/classes/framework_importer.php index c8f9816c0a1..5371c48785d 100644 --- a/admin/tool/lpimportcsv/classes/framework_importer.php +++ b/admin/tool/lpimportcsv/classes/framework_importer.php @@ -274,7 +274,6 @@ class framework_importer { // We are calling from browser, display progress bar. if ($this->useprogressbar === true) { $this->progress = new \core\progress\display_if_slow(get_string('processingfile', 'tool_lpimportcsv')); - $this->progress->start_html(); } else { // Avoid html output on CLI scripts. $this->progress = new \core\progress\none(); @@ -464,7 +463,6 @@ class framework_importer { $framework = api::create_framework($record); if ($this->useprogressbar === true) { $this->progress = new \core\progress\display_if_slow(get_string('importingfile', 'tool_lpimportcsv')); - $this->progress->start_html(); } else { $this->progress = new \core\progress\none(); }