Now scheduled backup emails set the priotity header if something was wrong.
Bug 2647. (http://moodle.org/bugs/bug.php?op=show&bugid=2647)
This commit is contained in:
@@ -51,5 +51,7 @@ Now I show the specific detailed status of every item in the process:
|
||||
30. DELAY:Add support for user->dstpreset. After talking with Jon, delayed
|
||||
because there isn't possible to recode it to destination server. But
|
||||
sometime we should think in a solution (STAMPS or CHECKSUMS of DSTs).
|
||||
31. DONE: Change mail's priority (bug 2647) if something goes wrong in scheduled backups.
|
||||
|
||||
Eloy (stronk7)
|
||||
23-01-2004
|
||||
|
||||
@@ -169,6 +169,8 @@ function schedule_backup_cron() {
|
||||
$message .= " ".get_string('backupfailed')."\n\n";
|
||||
$dest_url = $CFG->wwwroot.'/backup/log.php';
|
||||
$message .= " ".get_string('backuptakealook','',$dest_url)."\n\n";
|
||||
//Set message priority
|
||||
$admin->priority = 1;
|
||||
//Reset unfinished to error
|
||||
set_field('backup_courses','laststatus','0','laststatus','2');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user