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

This commit is contained in:
Petr Skoda
2012-06-07 11:14:05 +02:00
parent a6dfc10bb0
commit ff5aed23a4
@@ -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), '_');