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/comment.module | 2 +- modules/comment/comment.module | 2 +- modules/watchdog.module | 4 ++-- modules/watchdog/watchdog.module | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index 2c0de7923..1c56bf2ce 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -802,7 +802,7 @@ function comment_save($id, $edit) { function comment_admin_overview($status = 0) { - $result = pager_query("SELECT c.*, u.name, u.uid FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE c.status = '". check_query($status) ."' ORDER BY c.timestamp DESC"); + $result = pager_query("SELECT c.*, u.name, u.uid FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE c.status = '". check_query($status) ."' ORDER BY c.timestamp DESC", 50); $header = array(t("subject"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($comment = db_fetch_object($result)) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2c0de7923..1c56bf2ce 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -802,7 +802,7 @@ function comment_save($id, $edit) { function comment_admin_overview($status = 0) { - $result = pager_query("SELECT c.*, u.name, u.uid FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE c.status = '". check_query($status) ."' ORDER BY c.timestamp DESC"); + $result = pager_query("SELECT c.*, u.name, u.uid FROM comments c LEFT JOIN users u ON u.uid = c.uid WHERE c.status = '". check_query($status) ."' ORDER BY c.timestamp DESC", 50); $header = array(t("subject"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($comment = db_fetch_object($result)) { 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; diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index d8ecf3a3a..62cb4b456 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/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