diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-19 19:59:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-19 19:59:48 +0000 |
commit | 3f1979aa3cfa2d50789e88bd0a857dec6babb44b (patch) | |
tree | 00a5170b8db220163950343292e0e7f966c80549 /submit.php | |
parent | a6e6dfb9219ebea34331ad46c9c43d53f7c3ca6f (diff) | |
download | brdo-3f1979aa3cfa2d50789e88bd0a857dec6babb44b.tar.gz brdo-3f1979aa3cfa2d50789e88bd0a857dec6babb44b.tar.bz2 |
- 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.
Diffstat (limited to 'submit.php')
-rw-r--r-- | submit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/submit.php b/submit.php index b2e4231ff..89e9b9769 100644 --- a/submit.php +++ b/submit.php @@ -15,7 +15,9 @@ if ($user->id) { $output .= "<FORM ACTION=\"submit.php\" METHOD=\"get\">\n"; $output .= "<B>". t("Category") .":</B><BR>\n"; - while ($category = db_fetch_object($result)) $options .= "<OPTION VALUE=\"$category->type\">$category->name</OPTION>"; + while ($category = db_fetch_object($result)) { + if (module_hook($category->type, "user")) $options .= "<OPTION VALUE=\"$category->type\">$category->name</OPTION>"; + } $output .= "<SELECT NAME=\"mod\">$options</SELECT><P>\n"; $output .= "<INPUT NAME=\"op\" TYPE=\"submit\" VALUE=\"". t("Next step") ."\">\n"; |