summaryrefslogtreecommitdiff
path: root/modules/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-23 23:11:59 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-23 23:11:59 +0000
commit30110a87701149dd23f250354266159ea3e07c35 (patch)
tree775143b1e81d7ca56df00f29a576e90218545f56 /modules/statistics.module
parent9574766ad8f8810baf42a81ae105984254f0fc0a (diff)
downloadbrdo-30110a87701149dd23f250354266159ea3e07c35.tar.gz
brdo-30110a87701149dd23f250354266159ea3e07c35.tar.bz2
- Patch #6166 by Moshe: node preview should not display links. Push the links to the theme instead of the theme having to pull them in using node_link().
TODO: 1. Update theme upgrade instructions in the handbook: node_link() is gone. 2. Remove page_link() just like we removed node_link().
Diffstat (limited to 'modules/statistics.module')
-rw-r--r--modules/statistics.module3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 568ee805b..40791bc19 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -629,7 +629,6 @@ function statistics_summary($dbfield, $dbrows) {
$result = db_query_range('SELECT n.nid, n.title FROM {node_counter} s INNER JOIN {node} n ON s.nid = n.nid ORDER BY %s DESC', $dbfield, 0, $dbrows);
while ($nid = db_fetch_array($result)) {
$content = node_load(array('nid' => $nid['nid']));
- $links = link_node($content, 1);
// Filter and prepare node teaser
if (node_hook($content, 'view')) {
@@ -641,7 +640,7 @@ function statistics_summary($dbfield, $dbrows) {
$output .= '<tr><td><strong>'. l($nid['title'], 'node/'. $nid['nid'], array('title' => t('View this posting.'))) .'</strong></td><td style="text-align: right;"><small>'. t('Submitted by %a on %b', array('%a' => format_name($content), '%b' => format_date($content->created, 'large'))) .'</small></td></tr>';
$output .= '<tr><td colspan="2"><div style="margin-left: 20px;">'. $content->teaser .'</div></td></tr>';
- $output .= '<tr><td style="text-align: right;" colspan="2">[ '. theme('links', $links) .' ]<br /><br /></td></tr>';
+ $output .= '<tr><td style="text-align: right;" colspan="2">[ '. theme('links', $content->links) .' ]<br /><br /></td></tr>';
}
return $output;