mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Now scheduled backup supports new blocks.
Moved blocks code to library. Fixed a missing global preventing restore to work.
This commit is contained in:
parent
00363c7033
commit
94df8a48c3
4 changed files with 72 additions and 53 deletions
|
@ -558,6 +558,12 @@ function schedule_backup_course_execute($preferences,$starttime = 0) {
|
|||
$status = backup_course_start($backup_file,$preferences);
|
||||
}
|
||||
|
||||
//Block info
|
||||
if ($status) {
|
||||
schedule_backup_log($starttime,$preferences->backup_course," blocks info");
|
||||
$status = backup_course_blocks($backup_file,$preferences);
|
||||
}
|
||||
|
||||
//Section info
|
||||
if ($status) {
|
||||
schedule_backup_log($starttime,$preferences->backup_course," sections info");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue