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

This commit is contained in:
Petr Skoda
2012-06-07 11:05:15 +02:00
parent c9978ce67b
commit dbf7784e67
@@ -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(' ', '_', textlib::strtolower(get_string('backupfilename')));
$backupword = trim(clean_filename($backupword), '_');