////////////////////////////////////////////////////////////////////
// Based on format.php, included by ../../import.php
-
+require_once($CFG->dirroot.'/lib/uploadlib.php');
class quiz_file_format {
function importpreprocess($category) {
$newfile = "$basedir/$cleanfilename";
if (move_uploaded_file($filename, $newfile)) {
chmod($newfile, 0666);
+ clam_log_upload($newfile,$course);
} else {
notify(get_string("uploadproblem", "", $filename));
}
$newfile = "$basedir/$cleanfilename";
if (move_uploaded_file($filename, $newfile)) {
chmod($newfile, 0666);
+ clam_log_upload($newfile,$course);
} else {
notify(get_string("uploadproblem", "", $filename));
}