diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-06-01 21:57:29 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-06-01 21:57:29 +0000 |
commit | 4a28077f468f0a688cd70f3b43e5ffc242bcb49a (patch) | |
tree | 8913da6bf5a92e28d06f04db9635c1b93c4c8fe3 /modules/comment.module | |
parent | 59082a5f19aded411f474fcd88220a06a02f06f4 (diff) | |
download | brdo-4a28077f468f0a688cd70f3b43e5ffc242bcb49a.tar.gz brdo-4a28077f468f0a688cd70f3b43e5ffc242bcb49a.tar.bz2 |
- 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.
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 7 |
1 files changed, 6 insertions, 1 deletions
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 "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n"; print " <tr><th>". t("Subject") ."</th><th>". t("Author") ."</th><th>". t("Date") ."</th></tr>\n"; while ($comment = db_fetch_object($result)) { |