mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-42489 backup: use correct exception class in automated backups
This commit is contained in:
parent
68291f2d57
commit
932f54e996
@ -559,7 +559,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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user