summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-13 17:34:18 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-13 17:34:18 +0000
commitd95499bf03c65f59190687882567c80a074c711a (patch)
treee2b55f427e0f11148a182dcf191ee3719ea1c425 /modules/node
parentc0330f166f29815f9d35ce817032802e7a073b03 (diff)
downloadbrdo-d95499bf03c65f59190687882567c80a074c711a.tar.gz
brdo-d95499bf03c65f59190687882567c80a074c711a.tar.bz2
- Bugfix: small Xtemplate fixes. Patch by Ax. (Slightly modified.)
- Bugfix: block patch fix. Patch by Gerhard. - Bugfix: fixed broken URL in ping. Patch by Gerhard. (This should fix the problems shown on http://www.blo.gs/info.php?id=1515.) - Improvement: added better password generator. Patch #1 by Al. Fixes bug #1935. - Improvement: performance improvement to the blog module. Patch by Marco.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index a737189ee..e17fde80e 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -47,14 +47,9 @@ function node_system($field){
** Returns an HTML list suitable as content for a block.
*/
function node_title_list($result, $title = NULL) {
- // no queries if site is in distress
- if (module_exist("statistics") && throttle_status() > 3) {
- return;
- }
-
while ($node = db_fetch_object($result)) {
$number = module_invoke("comment", "num_all", $node->nid);
- $items[] = l($node->title, "node/view/$node->nid", array("title" => t("Comments: %number", array("%number" => $number))));
+ $items[] = l($node->title, "node/view/$node->nid", array("title" => format_plural($number, "%count comment", "%count comments")));
}
return theme("theme_node_list", $items, $title);