From 30110a87701149dd23f250354266159ea3e07c35 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 23 Nov 2004 23:11:59 +0000 Subject: - 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(). --- modules/statistics/statistics.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 568ee805b..40791bc19 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/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 .= ''. l($nid['title'], 'node/'. $nid['nid'], array('title' => t('View this posting.'))) .''. t('Submitted by %a on %b', array('%a' => format_name($content), '%b' => format_date($content->created, 'large'))) .''; $output .= '
'. $content->teaser .'
'; - $output .= '[ '. theme('links', $links) .' ]

'; + $output .= '[ '. theme('links', $content->links) .' ]

'; } return $output; -- cgit v1.2.3