From 3f1979aa3cfa2d50789e88bd0a857dec6babb44b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 19 Apr 2001 19:59:48 +0000 Subject: - Addition: made it so that comments can be enabled/disabled on a node per node basis, rather then on a category per category basis. The default settings for each individual category can be changed though. Example: it can be setup so that - by default - all stories posted to the category "article" will have comments enabled but stories submitted to "announcement" not. Different configuration schemes can easily be added later. Requires a SQL update, see 2.00-to-x.xx.sql/database.mysql. - Addition: made submit.php only use categories that users can actually submit new content to. --- includes/structure.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'includes/structure.inc') diff --git a/includes/structure.inc b/includes/structure.inc index 6d6655a3e..94c14ad6d 100644 --- a/includes/structure.inc +++ b/includes/structure.inc @@ -47,6 +47,12 @@ function category_expire_threshold($cid) { return $category->threshold; } +// return default comment status of category $cid: +function category_comment($cid) { + $category = category_get_object("cid", $cid); + return $category->comment; +} + // return linked string with name of category $cid: function category_name($cid) { $category = category_get_object("cid", $cid); -- cgit v1.2.3