Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…oodle into MOODLE_21_STABLE
  • Loading branch information...
commit 34025ea1c2ecdbd98b9c997f9c975a9d3de91dd5 2 parents 8fbbd40 + ff5aed2
@stronk7 stronk7 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.