Permalink
Browse files

Little bug when renaming existent courses...

  • Loading branch information...
stronk7
stronk7 committed Jun 3, 2003
1 parent 14b7d47 commit f28aefbe4fb6fe7224499a8a2350db2f639bae0c
Showing with 4 additions and 4 deletions.
  1. +4 −4 backup/restorelib.php
View
@@ -224,14 +224,14 @@ function restore_create_new_course($restore,&$course_header) {
//Iteratere while the name exists
do {
if ($counter) {
- $suffixfull = get_string("copy")." ".$counter;
- $suffixshort = $counter;
+ $suffixfull = " ".get_string("copy")." ".$counter;
+ $suffixshort = "-".$counter;
} else {
$suffixfull = "";
$suffixshort = "";
}
- $currentfullname = $fullname." ".$suffixfull;
- $currentshortname = $shortname."-".$suffixshort;
+ $currentfullname = $fullname.$suffixfull;
+ $currentshortname = $shortname.$suffixshort;
$course = get_record("course","fullname",addslashes($currentfullname));
$counter++;
} while ($course);

0 comments on commit f28aefb

Please sign in to comment.