]> git.mjollnir.org Git - moodle.git/commitdiff
Due to problems in the FileManager with filenames containing spaces
authorstronk7 <stronk7>
Sun, 1 Jun 2003 19:58:08 +0000 (19:58 +0000)
committerstronk7 <stronk7>
Sun, 1 Jun 2003 19:58:08 +0000 (19:58 +0000)
force a replace from spaces to underscores

backup/backup_check.html

index b08cb9b451c53c4bb75b4ad00901f6b8b0b911d2..b38326475b68a8238eae08edf2df0f1f137ee6c8 100644 (file)
@@ -77,7 +77,8 @@
     echo get_string("name").":";
     echo "</B></td><td>";
     //Calculate the backup string
-    $backup_name = strtolower(get_string("backup"));
+    //Take off spaces in the filename !!
+    $backup_name = str_replace(" ","_",strtolower(get_string("backupfilename")));
     //If non-translated, use "backup"
     if (substr($backup_name,0,1) == "[") {
         $backup_name = "backup";