summaryrefslogtreecommitdiff
path: root/modules/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-01 21:04:42 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-01 21:04:42 +0000
commitdc938c533bbf94f2ce2400cfc006d1f1ced8e96d (patch)
treef7a94dc4fa8079e30bb7b6f44c46c0249004e19d /modules/statistics.module
parent928435a565a58facca9c01d1fc186b5e3cfc0a2c (diff)
downloadbrdo-dc938c533bbf94f2ce2400cfc006d1f1ced8e96d.tar.gz
brdo-dc938c533bbf94f2ce2400cfc006d1f1ced8e96d.tar.bz2
- Patch #5567 by Goba: fixed t() functions, cleanup of locale module's help,
fixed translation issues in taxonomy module, etc.
Diffstat (limited to 'modules/statistics.module')
-rw-r--r--modules/statistics.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 625f7c64e..f25f87542 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -311,16 +311,16 @@ function statistics_top_refer() {
elseif ($view == "internal") {
$query = "SELECT url, MAX(timestamp) AS last_view, COUNT(url) AS count FROM {accesslog} WHERE url LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%' GROUP BY url";
$query_cnt = "SELECT COUNT(DISTINCT(url)) FROM {accesslog} WHERE url <> '' AND url LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%'";
- $describe = "internal ";
+ $describe = t("Top internal referrers of the past %interval");
}
else {
/* default to external */
$query = "SELECT url, MAX(timestamp) AS last_view, COUNT(url) AS count FROM {accesslog} WHERE url NOT LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%' AND url <> '' GROUP BY url";
$query_cnt = "SELECT COUNT(DISTINCT(url)) FROM {accesslog} WHERE url <> '' AND url NOT LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%'";
- $describe = "external ";
+ $describe = t("Top external referrers of the past %interval");
}
- $output = "<h3>". t("Top $describe referrers of the past %interval", array("%interval" => format_interval(variable_get("statistics_flush_accesslog_timer", 259200)))) ."</h3>";
+ $output = "<h3>". strtr($describe, array("%interval" => format_interval(variable_get("statistics_flush_accesslog_timer", 259200)))) ."</h3>";
$header = array(
array("data" => t("URL"), "field" => "url"),