Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33583 really keep all automated backup files when told to do so

  • Loading branch information...
commit ff5aed23a481670db60a5b80bc5e348434c5c75e 1 parent a6dfc10
@skodak skodak authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 backup/util/helper/backup_cron_helper.class.php
View
5 backup/util/helper/backup_cron_helper.class.php
@@ -461,6 +461,11 @@ public static function remove_excess_backups($course) {
$storage = $config->backup_auto_storage;
$dir = $config->backup_auto_destination;
+ if ($keep == 0) {
+ // means keep all backup files
+ return true;
+ }
+
$backupword = str_replace(' ', '_', moodle_strtolower(get_string('backupfilename')));
$backupword = trim(clean_filename($backupword), '_');
Please sign in to comment.
Something went wrong with that request. Please try again.