From 8d67a044b730d253f43259093d4420f4a9197dcc Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 16 Oct 2004 16:33:40 +0000 Subject: [PATCH] Added the optional showstatus parameter to unzip_file() to avoid sending any output if desired. Merged from MOODLE_14_STABLE --- lib/moodlelib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 485ffd71f4..a723546965 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4314,7 +4314,7 @@ function zip_files ($originalfiles, $destination) { return true; } -function unzip_file ($zipfile, $destination = '') { +function unzip_file ($zipfile, $destination = '', $showstatus = true) { //Unzip one zip file to a destination dir //Both parameters must be FULL paths //If destination isn't specified, it will be the @@ -4385,7 +4385,9 @@ function unzip_file ($zipfile, $destination = '') { } //Display some info about the unzip execution - unzip_show_status($list,$destpath); + if ($showstatus) { + unzip_show_status($list,$destpath); + } return true; } -- 2.39.5