From: stronk7 Date: Tue, 3 Jun 2003 16:32:38 +0000 (+0000) Subject: Little bug when renaming existent courses... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f28aefbe4fb6fe7224499a8a2350db2f639bae0c;p=moodle.git Little bug when renaming existent courses... --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 3feb9b69b6..5049a92b1a 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -224,14 +224,14 @@ //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);