Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 9f012f896867cafe15ced7c09edcc0712016444c 1 parent 7f459d6
Petr Škoda authored June 07, 2012
5  backup/util/helper/backup_cron_helper.class.php
@@ -459,6 +459,11 @@ public static function remove_excess_backups($course) {
459 459
         $storage =  $config->backup_auto_storage;
460 460
         $dir =      $config->backup_auto_destination;
461 461
 
  462
+        if ($keep == 0) {
  463
+            // means keep all backup files
  464
+            return true;
  465
+        }
  466
+
462 467
         $backupword = str_replace(' ', '_', moodle_strtolower(get_string('backupfilename')));
463 468
         $backupword = trim(clean_filename($backupword), '_');
464 469
 

0 notes on commit 9f012f8

Please sign in to comment.
Something went wrong with that request. Please try again.