From: gbateson Date: Fri, 6 Oct 2006 06:22:15 +0000 (+0000) Subject: added "format_string" and "stripslashes" when print HotPot name to browser X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=259bcf0c8b5c1e1351e1685c6e99ff8b9f3b354f;p=moodle.git added "format_string" and "stripslashes" when print HotPot name to browser --- diff --git a/mod/hotpot/restorelib.php b/mod/hotpot/restorelib.php index 5f79d481d4..992e570bfa 100644 --- a/mod/hotpot/restorelib.php +++ b/mod/hotpot/restorelib.php @@ -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 "
  • ".get_string("modulename", "hotpot")." "".$record->name.""
  • ";'; + $more_restore .= 'print "
  • ".get_string("modulename", "hotpot")." "".format_string(stripslashes($record->name),true).""
  • ";'; } $more_restore .= 'backup_flush(300);'; if (function_exists('restore_userdata_selected')) {