Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9f012f896867cafe15ced7c09edcc0712016444c 1 parent 7f459d6
@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
@@ -459,6 +459,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.