mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Show notice at bottom.
This commit is contained in:
parent
96caf38df2
commit
7bb8485d6e
1 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue