summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-21 10:35:30 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-21 10:35:30 +0000
commit849b271a8c3930b5a912f9ec7bd7bba9bac20819 (patch)
tree6a7bdfaf71ac3c37b3797546ba54950f48dbe23a /core
parent0573698155f04d6ccb6a68cf63fdeb8c73501576 (diff)
Add info/warning/error classes to log messages.
Diffstat (limited to 'core')
-rw-r--r--core/views/admin_block_log_entries.html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/admin_block_log_entries.html.php b/core/views/admin_block_log_entries.html.php
index 31929068..4ac774d4 100644
--- a/core/views/admin_block_log_entries.html.php
+++ b/core/views/admin_block_log_entries.html.php
@@ -1,7 +1,8 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<ul>
+ <? $map = array(log::INFO => "gInfo", log::WARNING => "gWarning", log::ERROR => "gError") ?>
<? foreach ($entries as $entry): ?>
- <li>
+ <li class="<?= $map[$entry->severity] ?>">
<a href="<?= url::site("user/$entry->user_id") ?>"><?= $entry->user->name ?></a>
<?= date("Y-M-d H:i:s", $entry->timestamp) ?>
<?= $entry->message ?>