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

This commit is contained in:
Ankit Agarwal
2013-10-23 13:56:08 +08:00
parent b6ced2f7e4
commit 8cbfc9614a
@@ -548,7 +548,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 {