Skip to content

Commit

Permalink
Merge branch 'w23_MDL-33583_m23_keepall' of git://github.com/skodak/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
stronk7 committed Jun 7, 2012
2 parents c224cc6 + dbf7784 commit 61aaad4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backup/util/helper/backup_cron_helper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ', '_', textlib::strtolower(get_string('backupfilename')));
$backupword = trim(clean_filename($backupword), '_');

Expand Down

0 comments on commit 61aaad4

Please sign in to comment.