summaryrefslogtreecommitdiff
path: root/modules/dblog
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dblog')
-rw-r--r--modules/dblog/dblog.admin.inc12
-rw-r--r--modules/dblog/dblog.css11
2 files changed, 12 insertions, 11 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index bc09b5f8f..fad50ef34 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -15,16 +15,6 @@
function dblog_overview() {
$filter = dblog_build_filter_query();
$rows = array();
- $icons = array(
- WATCHDOG_DEBUG => '',
- WATCHDOG_INFO => '',
- WATCHDOG_NOTICE => '',
- WATCHDOG_WARNING => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('warning'), 'title' => t('warning'))),
- WATCHDOG_ERROR => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('error'), 'title' => t('error'))),
- WATCHDOG_CRITICAL => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('critical'), 'title' => t('critical'))),
- WATCHDOG_ALERT => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('alert'), 'title' => t('alert'))),
- WATCHDOG_EMERGENCY => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('emergency'), 'title' => t('emergency'))),
- );
$classes = array(
WATCHDOG_DEBUG => 'dblog-debug',
WATCHDOG_INFO => 'dblog-info',
@@ -65,7 +55,7 @@ function dblog_overview() {
$rows[] = array('data' =>
array(
// Cells
- $icons[$dblog->severity],
+ array('class' => 'icon'),
t($dblog->type),
format_date($dblog->timestamp, 'short'),
theme('dblog_message', array('event' => $dblog, 'link' => TRUE)),
diff --git a/modules/dblog/dblog.css b/modules/dblog/dblog.css
index ce3e3608c..1b7e8352c 100644
--- a/modules/dblog/dblog.css
+++ b/modules/dblog/dblog.css
@@ -46,3 +46,14 @@ tr.dblog-error {
tr.dblog-error .active {
background: #eeb9b9;
}
+table#admin-dblog td.icon {
+ background: no-repeat center;
+ width: 16px;
+}
+table#admin-dblog tr.dblog-warning td.icon {
+ background-image: url(../../misc/message-16-warning.png);
+}
+table#admin-dblog tr.dblog-error td.icon {
+ background-image: url(../../misc/message-16-error.png);
+}
+