Skip to content

Commit

Permalink
MDL-14126 fixed undefined message
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 1, 2008
1 parent 73c7b45 commit 95245d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -5668,13 +5668,15 @@ function print_error ($errorcode, $module='', $link='', $a=NULL) {
$errordocroot = 'http://docs.moodle.org';
}

$message = get_string($errorcode, $module, $a);

if (defined('FULLME') && FULLME == 'cron') {
// Errors in cron should be mtrace'd.
mtrace($message);
die;
}

$message = clean_text('<p class="errormessage">'.get_string($errorcode, $module, $a).'</p>'.
$message = clean_text('<p class="errormessage">'.$message.'</p>'.
'<p class="errorcode">'.
'<a href="'.$errordocroot.'/en/error/'.$modulelink.'/'.$errorcode.'">'.
get_string('moreinformation').'</a></p>');
Expand Down

0 comments on commit 95245d3

Please sign in to comment.