MDL-42489 backup: use correct exception class in automated backups

This commit is contained in:
Ankit Agarwal 2013-10-23 13:46:43 +08:00
parent 68291f2d57
commit 932f54e996

View File

@ -559,7 +559,7 @@ abstract class backup_cron_automated_helper {
public static function set_state_running($running = true) {
if ($running === true) {
if (self::get_automated_backup_state() === self::STATE_RUNNING) {
throw new backup_exception('backup_automated_already_running');
throw new backup_helper_exception('backup_automated_already_running');
}
set_config('backup_auto_running', '1', 'backup');
} else {