summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-29 07:53:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-29 07:53:44 +0000
commitada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9 (patch)
treec782c1215efd9f82c516608cd62ed7e56cdd4e4d /modules/statistics
parent3d2110bfdb8d12e40d4093e0050a14301b0e36d5 (diff)
downloadbrdo-ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9.tar.gz
brdo-ada6432e5e8844e9d0c8ce42e7ee5d88c9224ef9.tar.bz2
- Patch #809558 by mr.baileys: node_title_list() didn't return renderable array for block content.
Diffstat (limited to 'modules/statistics')
-rw-r--r--modules/statistics/statistics.module11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 983dba45b..859ca1e4e 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -350,21 +350,24 @@ function statistics_block_view($delta = '') {
$daytop = variable_get('statistics_block_top_day_num', 0);
if ($daytop && ($result = statistics_title_list('daycount', $daytop)) && ($node_title_list = node_title_list($result, t("Today's:")))) {
- $content[] = $node_title_list;
+ $content['top_day'] = $node_title_list;
+ $content['top_day']['#suffix'] = '<br />';
}
$alltimetop = variable_get('statistics_block_top_all_num', 0);
if ($alltimetop && ($result = statistics_title_list('totalcount', $alltimetop)) && ($node_title_list = node_title_list($result, t('All time:')))) {
- $content[] = $node_title_list;
+ $content['top_all'] = $node_title_list;
+ $content['top_all']['#suffix'] = '<br />';
}
$lasttop = variable_get('statistics_block_top_last_num', 0);
if ($lasttop && ($result = statistics_title_list('timestamp', $lasttop)) && ($node_title_list = node_title_list($result, t('Last viewed:')))) {
- $content[] = $node_title_list;
+ $content['top_last'] = $node_title_list;
+ $content['top_last']['#suffix'] = '<br />';
}
if (count($content)) {
- $block['content'] = implode('<br />', $content);
+ $block['content'] = $content;
$block['subject'] = t('Popular content');
return $block;
}