From 4e5f28b6a1be2de342c0aef45e939dbae1578b93 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 2 Mar 2005 18:09:58 +0000 Subject: [PATCH] Now scheduled backup emails set the priotity header if something was wrong. Bug 2647. (http://moodle.org/bugs/bug.php?op=show&bugid=2647) --- backup/CHANGES_14_15.txt | 2 ++ backup/backup_scheduled.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/backup/CHANGES_14_15.txt b/backup/CHANGES_14_15.txt index 026d381c652..f053634be59 100644 --- a/backup/CHANGES_14_15.txt +++ b/backup/CHANGES_14_15.txt @@ -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 diff --git a/backup/backup_scheduled.php b/backup/backup_scheduled.php index e6f9a07d2e0..41ef78426e6 100644 --- a/backup/backup_scheduled.php +++ b/backup/backup_scheduled.php @@ -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 {