summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-05-31 21:14:27 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-05-31 21:14:27 +0000
commita597354bcb48536f2c7633d53c78fa931b186c20 (patch)
tree34e16a5b178faf3047963cddfdec084bfeceb8cb /modules/statistics/statistics.module
parent025bca28aa1717459c811744704e0c1b514d1e1e (diff)
downloadbrdo-a597354bcb48536f2c7633d53c78fa931b186c20.tar.gz
brdo-a597354bcb48536f2c7633d53c78fa931b186c20.tar.bz2
- Code cleanup: improve format_plural usage, add some missing placeholder/check calls, and introduce API for <link> tags.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 62db34e55..46e521b80 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -144,11 +144,11 @@ function statistics_access_log($aid) {
if ($access = db_fetch_object($result)) {
$output = '<table border="1" cellpadding="2" cellspacing="2">';
$output .= ' <tr><th>'. t('Page URL') ."</th><td>". l(url($access->path, NULL, NULL, TRUE), $access->url) ."</td></tr>";
- $output .= ' <tr><th>'. t('Page title') ."</th><td>$access->title</td></tr>";
+ $output .= ' <tr><th>'. t('Page title') .'</th><td>'. check_plain($access->title) .'</td></tr>';
$output .= ' <tr><th>'. t('Referrer') ."</th><td>". ($access->url ? l($access->url, $access->url) : '') ."</td></tr>";
$output .= ' <tr><th>'. t('Date') .'</th><td>'. format_date($access->timestamp, 'large') .'</td></tr>';
$output .= ' <tr><th>'. t('User') .'</th><td>'. format_name($access) .'</td></tr>';
- $output .= ' <tr><th>'. t('Hostname') ."</th><td>$access->hostname</td></tr>";
+ $output .= ' <tr><th>'. t('Hostname') .'</th><td>'. check_plain($access->hostname) .'</td></tr>';
$output .= '</table>';
return $output;
}