]> git.mjollnir.org Git - moodle.git/commitdiff
Added clam_log_upload where move_uploaded_file is in quiz/format/coursetestmanager...
authormjollnir_ <mjollnir_>
Thu, 16 Sep 2004 04:50:21 +0000 (04:50 +0000)
committermjollnir_ <mjollnir_>
Thu, 16 Sep 2004 04:50:21 +0000 (04:50 +0000)
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-71
    2004-09-16 04:48:07 GMT
    Penny Leach <penny@catalyst.net.nz>
    difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process

Full logs:

Revision: moodle--eduforge--1.3.3--patch-71
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Thu Sep 16 16:48:07 NZST 2004
Standard-date: 2004-09-16 04:48:07 GMT
Modified-files: mod/quiz/format/coursetestmanager/format.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-71
Summary: difficult to integrate quiz coursetestmanager format with the upload stuff so added logging as well. files are scanned from import.php before passed to coursetestmanager format to process
Keywords:

mod/quiz/format/coursetestmanager/format.php

index b7765124876189cb9b3947c57fe086bd1c8ab992..18cbe553a6579a1be4e6dd6db778d6b5b535b4eb 100755 (executable)
@@ -6,7 +6,7 @@
 ////////////////////////////////////////////////////////////////////
 
 // Based on format.php, included by ../../import.php
-
+require_once($CFG->dirroot.'/lib/uploadlib.php');
 
 class quiz_file_format {
     function importpreprocess($category) {
@@ -41,6 +41,7 @@ class quiz_file_format {
                    $newfile = "$basedir/$cleanfilename";
                    if (move_uploaded_file($filename, $newfile)) {
                        chmod($newfile, 0666);
+                    clam_log_upload($newfile,$course);
                    } else {
                        notify(get_string("uploadproblem", "", $filename));
                    }
@@ -95,6 +96,7 @@ class quiz_file_format {
                    $newfile = "$basedir/$cleanfilename";
                    if (move_uploaded_file($filename, $newfile)) {
                        chmod($newfile, 0666);
+                    clam_log_upload($newfile,$course);
                    } else {
                        notify(get_string("uploadproblem", "", $filename));
                    }