Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8cbfc9614a225de2eda365b6482c8b83b75d92e8 1 parent b6ced2f
@ankitagarwal ankitagarwal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  backup/util/helper/backup_cron_helper.class.php
View
2  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.