Permalink
Browse files

Merge branch 'w23_MDL-33583_m22_keepall' of git://github.com/skodak/m…

…oodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents b98956f + 31ffef3 commit 887e2c85359aa61b9c9ec9f353767972e9c40506 @stronk7 stronk7 committed Jun 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 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), '_');

0 comments on commit 887e2c8

Please sign in to comment.