Skip to content
Permalink
Browse files

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

  • Loading branch information...
ankitagarwal committed Oct 23, 2013
1 parent 68291f2 commit 932f54e9963c2842d43ec194a6f464a4107b3384
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/helper/backup_cron_helper.class.php
@@ -559,7 +559,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 {

0 comments on commit 932f54e

Please sign in to comment.
You can’t perform that action at this time.