- Patch #38787 by Jaza: print PHP errors using drupal_set_message().

4.7.x
Dries Buytaert 2005-11-27 09:14:52 +00:00
parent 86ded32fbb
commit 229fa7dea8
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ function error_handler($errno, $message, $filename, $line) {
$entry = $types[$errno] .': '. $message .' in '. $filename .' on line '. $line .'.';
if (variable_get('error_level', 1) == 1) {
print '<pre>'. $entry .'</pre>';
drupal_set_message($entry, 'error');
}
watchdog('php', t('%message in %file on line %line.', array('%error' => $types[$errno], '%message' => $message, '%file' => $filename, '%line' => $line)), WATCHDOG_ERROR);