Skip to content

Commit

Permalink
Changed to avoid backup_name contains whitespaces !!
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 23, 2003
1 parent 3567238 commit 6e0470a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/backup_check.html
Expand Up @@ -84,12 +84,12 @@
$backup_name = "backup";
}
//Calculate the format string
$backup_name_format = get_string("backupnameformat");
$backup_name_format = str_replace(" ","_",get_string("backupnameformat"));
//If non-translated, use "%Y%m%d-%H%M"
if (substr($backup_name_format,0,1) == "[") {
$backup_name_format = "%%Y%%m%%d-%%H%%M";
}
$backup_name .= "-".strtolower($course->shortname)."-".userdate(time(),$backup_name_format,99,false).".zip";
$backup_name .= str_replace(" ","_","-".strtolower($course->shortname)."-".userdate(time(),$backup_name_format,99,false).".zip");
echo $backup_name;
//Add as hidden name
echo "<input type=\"hidden\" name=\"backup_name\" value=\"".$backup_name."\">";
Expand Down

0 comments on commit 6e0470a

Please sign in to comment.