From: stronk7 Date: Fri, 2 May 2003 14:48:11 +0000 (+0000) Subject: Changed the name of the backup X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=02fee14e2801ab293459247d7e298cf73dc58e6b;p=moodle.git Changed the name of the backup --- diff --git a/backup/check.html b/backup/check.html index b8cddde7ea..c43609f2b1 100644 --- a/backup/check.html +++ b/backup/check.html @@ -64,7 +64,20 @@ echo "

"; echo get_string("name").":"; echo ""; - $backup_name = userdate(time(),get_string("backupnameformat")).".zip"; + //Calculate the backup string + $backup_name = strtolower(get_string("backup")); + //If non-translated, use "backup" + if (substr($backup_name,0,1) == "[") { + $backup_name = "backup"; + } + //Calculate the format string + $backup_name_format = 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 .= "-".userdate(time(),$backup_name_format,99,false).".zip"; echo $backup_name; //Add as hidden name echo "";