From 8cbfc9614a225de2eda365b6482c8b83b75d92e8 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 7c6de1e418298..e97049f9fd04b 100644 --- a/backup/util/helper/backup_cron_helper.class.php +++ b/backup/util/helper/backup_cron_helper.class.php @@ -548,7 +548,7 @@ public static function get_automated_backup_state($rundirective = self::RUN_ON_S 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 {