summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.pages.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/statistics/statistics.pages.inc')
-rw-r--r--modules/statistics/statistics.pages.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/statistics/statistics.pages.inc b/modules/statistics/statistics.pages.inc
index b74b5d703..c676a4f81 100644
--- a/modules/statistics/statistics.pages.inc
+++ b/modules/statistics/statistics.pages.inc
@@ -15,7 +15,7 @@ function statistics_node_tracker() {
array('data' => t('User'), 'field' => 'u.name'),
array('data' => t('Operations')));
- $query = db_select('accesslog', 'a')->extend('PagerDefault')->extend('TableSort');
+ $query = db_select('accesslog', 'a', array('target' => 'slave'))->extend('PagerDefault')->extend('TableSort');
$query->join('users', 'u', 'a.uid = u.uid');
$query
@@ -44,8 +44,8 @@ function statistics_node_tracker() {
drupal_set_title($node->title[FIELD_LANGUAGE_NONE][0]['value']);
$build['statistics_table'] = array(
- '#theme' => 'table',
- '#header' => $header,
+ '#theme' => 'table',
+ '#header' => $header,
'#rows' => $rows
);
$build['statistics_pager'] = array('#theme' => 'pager');
@@ -63,7 +63,7 @@ function statistics_user_tracker() {
array('data' => t('Timestamp'), 'field' => 'timestamp', 'sort' => 'desc'),
array('data' => t('Page'), 'field' => 'path'),
array('data' => t('Operations')));
- $query = db_select('accesslog', 'a')->extend('PagerDefault')->extend('TableSort');
+ $query = db_select('accesslog', 'a', array('target' => 'slave'))->extend('PagerDefault')->extend('TableSort');
$query
->fields('a', array('aid', 'timestamp', 'path', 'title'))
->condition('uid', $account->uid)
@@ -85,8 +85,8 @@ function statistics_user_tracker() {
drupal_set_title($account->name);
$build['statistics_table'] = array(
- '#theme' => 'table',
- '#header' => $header,
+ '#theme' => 'table',
+ '#header' => $header,
'#rows' => $rows
);
$build['statistics_pager'] = array('#theme' => 'pager');