From de95001c9291d6f2e66374975b793f84dc155aca Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 31 Dec 2002 12:34:07 +0000 Subject: - Tidied up the use of check_output(). Might make rendering pages a bit snappier (performance improvement). --- modules/statistics.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/statistics.module') diff --git a/modules/statistics.module b/modules/statistics.module index ff3eb87a2..ec27e9eaf 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -427,7 +427,7 @@ function statistics_recent_refer($nid = 0) { $header = array(t("URL"), t("date")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", format_date($referrer["timestamp"], "small")); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", format_date($referrer["timestamp"], "small")); } $output .= table($header, $rows); @@ -479,7 +479,7 @@ function statistics_top_refer($nid = 0) { $header = array(t("URL"), t("count")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", $referrer["count"]); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", $referrer["count"]); } $output .= table($header, $rows); @@ -889,7 +889,7 @@ function statistics_summary($dbfield, $dbrows) { $links = link_node($content, 1); $output .= "". l($nid["title"], array("id" => $nid["nid"]), "node", "", array("title" => t("View this posting."))) ."". t("Submitted by %a on %b", array("%a" => format_name($content), "%b" => format_date($content->created, "large"))) .""; - $output .= "
". check_output($content->teaser, 1) ."
"; + $output .= "
". check_output($content->teaser) ."
"; $output .= "[ ". $theme->links($links) ." ]

"; } -- cgit v1.2.3