mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Now, after restoring the course, the restore proccess executes
every MODULE_refresh_events() function to recalculate every activity event automatically.
This commit is contained in:
parent
866eb2ffbd
commit
df9a165ecc
3 changed files with 35 additions and 3 deletions
|
@ -267,6 +267,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
//Now, if all is OK, adjust activity events
|
||||
if ($status) {
|
||||
echo "<li>".get_string("refreshingevents");
|
||||
if (!$status = restore_refresh_events($restore)) {
|
||||
notify("Could not refresh events for activities!");
|
||||
}
|
||||
}
|
||||
|
||||
//Now if all is OK, update:
|
||||
// - course modinfo field
|
||||
// - categories table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue