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:
stronk7
2005-03-02 18:09:58 +00:00
parent 433c8b2e72
commit 4e5f28b6a1
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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
+2
View File
@@ -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 {