Merge branch 'w23_MDL-33583_m21_keepall' of git://github.com/skodak/moodle into MOODLE_21_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2012-06-08 01:57:04 +02:00
@@ -461,6 +461,11 @@ abstract class backup_cron_automated_helper {
$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), '_');