]> git.mjollnir.org Git - moodle.git/commitdiff
added "format_string" and "stripslashes" when print HotPot name to browser
authorgbateson <gbateson>
Fri, 6 Oct 2006 06:22:15 +0000 (06:22 +0000)
committergbateson <gbateson>
Fri, 6 Oct 2006 06:22:15 +0000 (06:22 +0000)
mod/hotpot/restorelib.php

index 5f79d481d40969ce3f4bbcb64c2f38c8a8b54fca..992e570bfa13cad51e3256d2251727eab0fc694e 100644 (file)
@@ -78,7 +78,7 @@ function hotpot_restore_mods($mod, $restore) {
         $more_restore = '';
         // print a message after each hotpot is backed up
         if (!defined('RESTORE_SILENTLY')) {
-            $more_restore .= 'print "<li>".get_string("modulename", "hotpot")." &quot;".$record->name."&quot;</li>";';
+            $more_restore .= 'print "<li>".get_string("modulename", "hotpot")." &quot;".format_string(stripslashes($record->name),true)."&quot;</li>";';
         }
         $more_restore .= 'backup_flush(300);';
         if (function_exists('restore_userdata_selected')) {