diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-08 18:30:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-08 18:30:20 +0000 |
commit | 712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7 (patch) | |
tree | b4ca486bfb1394ab5e53051181c2cc7dd7804ef3 /modules/statistics.module | |
parent | ea1acde1d547dfea7b8d0531d1b9ae04f000ea53 (diff) | |
download | brdo-712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7.tar.gz brdo-712a30b520c67ddc71c3f5a7b0a33ea3ae7b57b7.tar.bz2 |
- Improvements by Goba:
+ removes the lots of pagers and indirect pager themeing
+ add the theme_pager() function, which should be called as
theme("pager", ...) to get a pager.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r-- | modules/statistics.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index 2579261d4..d4e8efb4e 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -232,7 +232,7 @@ function statistics_admin_topnodes_table() { while ($nid = db_fetch_array($result)) { $rows[] = array(l($nid["title"], "node/view/". $nid["nid"], array("title" => t("View this posting."))), $nid["daycount"], $nid["totalcount"], format_date($nid["timestamp"], "small"), l("track node", "admin/statistics/log/node/$nid[nid]")); } - if ($pager = pager_display(NULL, 20, 0, "admin", tablesort_pager())) { + if ($pager = theme("pager", NULL, 20, 0, tablesort_pager())) { $rows[] = array(array("data" => $pager, "colspan" => 5)); } @@ -291,7 +291,7 @@ function statistics_admin_accesslog_table($type, $id) { $rows[] = array(array("data" => format_date($log->timestamp, "small"), "nowrap" => "nowrap"), ($log->nid ? l($log->title, "node/view/$log->nid") : message_na()), format_name($user), $log->hostname ? $log->hostname : message_na(), $url, ($log->nid ? l(t("track node"), "admin/statistics/log/node/$log->nid") : ""), ($user->uid ? l(t("track user"), "admin/statistics/log/user/$user->uid") : ""), ($log->hostname ? l(t("track host"), "admin/statistics/log/host/$log->hostname") : "")); } - if ($pager = pager_display(NULL, 50, 0, "admin", tablesort_pager())) { + if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) { $rows[] = array(array("data" => $pager, "colspan" => 8)); } @@ -332,7 +332,7 @@ function statistics_top_refer() { while ($referrer = db_fetch_array($result)) { $rows[] = array("<a href=\"". $referrer["url"] ."\">". substr($referrer["url"], 0, 100) ."</a>", format_date($referrer["last_view"], "small"), $referrer["count"]); } - if ($pager = pager_display(NULL, 50, 0, "admin", tablesort_pager())) { + if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) { $rows[] = array(array("data" => $pager, "colspan" => 3)); } |