From f26d8807fc2f272542c9c7845c293daa930d0096 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 4 Mar 2003 17:41:11 +0000 Subject: - Two small fixes. --- modules/watchdog.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/watchdog.module') diff --git a/modules/watchdog.module b/modules/watchdog.module index d8ecf3a3a..62cb4b456 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -46,7 +46,7 @@ function watchdog_overview($type) { $color = array("user" => "#FFEEAA", "message" => "#FFFFFF", "special" => "#A49FFF", "warning" => "#FFAA22", "httpd" => "#99DD99", "error" => "#EE4C4C"); $query = array("user" => "WHERE type = 'user'", "regular" => "WHERE type = 'message'", "special" => "WHERE type = 'special'", "warning" => "WHERE type = 'warning'", "error" => "WHERE type = 'error'", "httpd" => "WHERE type = 'httpd'", "actions" => "WHERE link != ''"); - $result = pager_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY w.timestamp DESC", 75); + $result = pager_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY w.timestamp DESC", 50); while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { @@ -57,7 +57,7 @@ function watchdog_overview($type) { $output .= ""; $output .= " "; $output .= ($data ? $data : ""); - $output .= (($pager = pager_display(NULL, 100, 0, "admin")) ? "" : ""); + $output .= (($pager = pager_display(NULL, 50, 0, "admin")) ? "" : ""); $output .= "
" . t("date") . "" . t("event") . "" . t("user") . "" . t("operations") . "
". t("No system messages currently available.") ."
$pager
$pager
"; return $output; -- cgit v1.2.3