sending any output if desired.
Merged from MOODLE_14_STABLE
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
}
//Display some info about the unzip execution
- unzip_show_status($list,$destpath);
+ if ($showstatus) {
+ unzip_show_status($list,$destpath);
+ }
return true;
}