From 4a28077f468f0a688cd70f3b43e5ffc242bcb49a Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 1 Jun 2002 21:57:29 +0000 Subject: - adding descriptions to modules (thanks Joe + Scott). - fixed comment flat list view missing 1 comment. - changed update.php around a bit. * security check isn't in effect if the db hasn't been updated. * instructions re-organized. * fixed some minor updates. - updated database.mysql done by UnConeD. - changelog update. --- modules/comment.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 0f11bec1d..509341ede 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -13,6 +13,11 @@ function comment_help() { return $output; } +function comment_system($field){ + $system["description"] = t("Enables user commenting."); + return $system[$field]; +} + function comment_settings($mode, $order, $threshold) { global $user; @@ -516,7 +521,7 @@ function comment_render($nid, $cid = 0) { } if ($mode == 1) { - if (db_result($result)) { + if (db_num_rows($result)) { print "\n"; print " \n"; while ($comment = db_fetch_object($result)) { -- cgit v1.2.3
". t("Subject") ."". t("Author") ."". t("Date") ."