Index: statistics.module =================================================================== RCS file: /cvs/drupal/drupal/modules/Attic/statistics.module,v retrieving revision 1.225.2.3 diff -u -r1.225.2.3 statistics.module --- statistics.module 1 Jan 2007 22:03:38 -0000 1.225.2.3 +++ statistics.module 16 Feb 2007 17:48:55 -0000 @@ -156,16 +156,15 @@ function statistics_access_log($aid) { $result = db_query('SELECT a.*, u.name FROM {accesslog} a LEFT JOIN {users} u ON a.uid = u.uid WHERE aid = %d', $aid); + $rows = array(); if ($access = db_fetch_object($result)) { - $output = ''; - $output .= ' "; - $output .= ' '; // safe because it comes from drupal_get_title() - $output .= ' "; - $output .= ' '; - $output .= ' '; - $output .= ' '; - $output .= '
'. t('URL') ."". l(url($access->path, NULL, NULL, TRUE), $access->path) ."
'. t('Title') .''. $access->title .'
'. t('Referrer') ."". ($access->url ? l($access->url, $access->url) : '') ."
'. t('Date') .''. format_date($access->timestamp, 'large') .'
'. t('User') .''. theme('username', $access) .'
'. t('Hostname') .''. check_plain($access->hostname) .'
'; - return $output; + array_push($rows, array(t('URL'), l(url($access->path, NULL, NULL, TRUE), $access->path))); + array_push($rows, array(t('Title'), $access->title)); + array_push($rows, array(t('Referrer'), ($access->url ? l($access->url, $access->url) : ''))); + array_push($rows, array(t('Date'), format_date($access->timestamp, 'large'))); + array_push($rows, array(t('User'), theme('username', $access))); + array_push($rows, array(t('Hostname'), check_plain($access->hostname))); + return theme('table', array(), $rows); } else { drupal_not_found();