From acea79f644292340eae2cf359d22d752f7234308 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Wed, 23 Oct 2013 13:46:43 +0800 Subject: [PATCH] MDL-42489 backup: use correct exception class in automated backups --- backup/util/helper/backup_cron_helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/util/helper/backup_cron_helper.class.php b/backup/util/helper/backup_cron_helper.class.php index bf242ea0f0a..63184dc1f1c 100644 --- a/backup/util/helper/backup_cron_helper.class.php +++ b/backup/util/helper/backup_cron_helper.class.php @@ -550,7 +550,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 {