Permalink
Browse files

MINOR Improved email log styling through inline style declaration (wh…

…ich now extends styles to tables), using smaller non-serif font for better readability
  • Loading branch information...
chillu committed Feb 6, 2012
1 parent c7b02d2 commit 5284f9019c07dbfd571ea819ed3a9313360c0460
Showing with 3 additions and 1 deletion.
  1. +3 −1 dev/LogErrorEmailFormatter.php
@@ -35,7 +35,9 @@ public function format($event) {
$errline = $event['message']['errline'];
$errcontext = $event['message']['errcontext'];
- $data = "<div style=\"border: 5px $colour solid\">\n";
+ $data = '';
+ $data .= '<style type="text/css">html, body, table {font-family: sans-serif; font-size: 12px;}</style>';
+ $data .= "<div style=\"border: 5px $colour solid;\">\n";
$data .= "<p style=\"color: white; background-color: $colour; margin: 0\">[$errorType] $errstr<br />$errfile:$errline\n<br />\n<br />\n</p>\n";
// Get a backtrace, filtering out debug method calls

0 comments on commit 5284f90

Please sign in to comment.