]> git.mjollnir.org Git - moodle.git/commitdiff
Show notice at bottom.
authorethem <ethem>
Tue, 31 Oct 2006 19:24:10 +0000 (19:24 +0000)
committerethem <ethem>
Tue, 31 Oct 2006 19:24:10 +0000 (19:24 +0000)
enrol/authorize/uploadcsv.php

index 5b7b1bb8f762e786fb211a5b54cc4d4bf44aec66..76b1bf00eef45e4a9a8c81d631629520d7a1e473 100644 (file)
@@ -46,7 +46,7 @@
 
 function authorize_process_csv($filename)
 {
-    global $CFG;
+    global $CFG, $SITE;
 
 /// We need these fields
     $myfields = array(
@@ -192,9 +192,6 @@ function authorize_process_csv($filename)
     }
     fclose($handle);
 
-/// Show result
-    notice("<b>Done...</b><br />Imported: $imported<br />Updated: $updated<br />Ignored: $ignored");
-
 /// Send email to admin
     if (!empty($ignoredlines)) {
         $admin = get_admin();
@@ -205,6 +202,9 @@ function authorize_process_csv($filename)
     if (!empty($sendem)) {
         send_welcome_messages($sendem);
     }
+
+/// Show result
+    notice("<b>Done...</b><br />Imported: $imported<br />Updated: $updated<br />Ignored: $ignored");
 }
 
 ?>