From: moodler Date: Wed, 12 Apr 2006 09:32:19 +0000 (+0000) Subject: Fixed up print_error according to original plan X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dd899b917d487297ad7238535fec0ff368913331;p=moodle.git Fixed up print_error according to original plan see also http://moodle.org/mod/forum/discuss.php?d=43712 --- diff --git a/lib/weblib.php b/lib/weblib.php index b88019fc9e..f301307efe 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4033,13 +4033,14 @@ function error ($message, $link='') { * * @uses $SESSION * @uses $CFG - * @param string $string The name of the string from error.php to print + * @param string $errorcode The name of the string from error.php to print * @param string $link The url where the user will be prompted to continue. If no url is provided the user will be directed to the site index page. */ -function print_error ($string, $link='') { +function print_error ($errorcode, $link='') { - $string = get_string($string, 'error'); - error($string, $link); + $message = get_string($errorcode, 'error'). + '

('.$errorcode.')

'; + error($message, $link); }