From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/statistics/statistics.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 6a243b2ff..3c7753f22 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -2,7 +2,7 @@ // $Id$ if (variable_get("referrer", 0) && $referrer = getenv("HTTP_REFERER")) { - db_query("INSERT INTO referrer (URL, timestamp) values ('". check_input($referrer) ."', '". time() ."')"); + db_query("INSERT INTO referrer (URL, timestamp) values ('%s', '%s')", $referrer, time()); } function statistics_help() { @@ -24,7 +24,7 @@ function statistics_perm() { function statistics_link($type) { if ($type == "admin" && user_access("administer statistics")) { - $links[] = "statistics"; + $links[] = la(t("statistics"), array("mod" => "statistics")); } return $links ? $links : array(); @@ -92,7 +92,7 @@ function statistics_admin() { if (user_access("administer statistics")) { - print "internal referrers | external referrers | help
\n"; + print "".la(t("internal referrers"), array("mod" => "statistics", "type" => "internal+referrer"))." | ".la(t("external referrers"), array("mod" => "statistics", "type" => "external+referrer"))." | ".la(t("help"), array("mod" => "statistics", "op" => "help"))."
\n"; switch ($op) { case "help": -- cgit v1.2.3