Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Little bug when renaming existent courses...

  • Loading branch information...
commit f28aefbe4fb6fe7224499a8a2350db2f639bae0c 1 parent 14b7d47
stronk7 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 backup/restorelib.php
View
8 backup/restorelib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.