]> git.mjollnir.org Git - moodle.git/commitdiff
Strip tags from activity names when moving
authormoodler <moodler>
Wed, 17 Dec 2003 03:32:30 +0000 (03:32 +0000)
committermoodler <moodler>
Wed, 17 Dec 2003 03:32:30 +0000 (03:32 +0000)
course/lib.php

index ab8e0dd39918cf91a054be2678f20a277337bc48..39c6920f46e803bdf05cc6ee7e31157f745e0efa 100644 (file)
@@ -524,7 +524,7 @@ function print_section_block($heading, $course, $section, $mods, $modnames, $mod
 
         if ($ismoving) {
             $strmovehere = get_string("movehere");
-            $strmovefull = get_string("movefull", "", "'$USER->activitycopyname'");
+            $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
             $stractivityclipboard = $USER->activitycopyname;
             $strcancel= get_string("cancel");
             $modicon[] = "&nbsp;<img align=bottom src=\"$CFG->pixpath/t/move.gif\" height=\"11\" width=\"11\">";
@@ -613,7 +613,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
     }
     if ($ismoving) {
         $strmovehere = get_string("movehere");
-        $strmovefull = get_string("movefull", "", "'$USER->activitycopyname'");
+        $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
     }
 
     $modinfo = unserialize($course->modinfo);