summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-02 18:47:12 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-02 18:47:12 +0000
commitab143d6870237fcf3294e954a57b14ea08a3848d (patch)
tree7f9b0a9a2b356b8238c7e9f390ce269ea6b98f11 /modules/node.module
parentf42bfcac31d692943a31eab7f5fc9458430606f8 (diff)
downloadbrdo-ab143d6870237fcf3294e954a57b14ea08a3848d.tar.gz
brdo-ab143d6870237fcf3294e954a57b14ea08a3848d.tar.bz2
- Fixed "Allow user comments: disabled" no longer works and so on. Patch by
Marco.
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index b9f751ec1..d18fd7a38 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -32,8 +32,8 @@ function node_title_list($result, $title = NULL) {
$name = strip_tags(format_name($node)); // required for anonymous users to work
$items[] = l(check_output($node->title), array("id" => $node->nid), "node", "", array("title" => t("Author: %name, comments: %number", array("%name" => $name, "%number" => $number))));
}
- return theme_invoke("theme_item_list", $items, $title);
+ return theme_invoke("theme_item_list", $items, $title);
}
function node_teaser($body) {
@@ -1155,7 +1155,7 @@ function node_submit($node) {
*/
if (user_access("administer nodes")) {
- $fields = array("uid", "body", "comment" => 2, "created", "promote", "moderate", "status" => 1, "teaser", "title", "type" => $node->type);
+ $fields = array("uid", "body", "comment", "created", "promote", "static", "moderate", "status", "teaser", "title", "type" => $node->type);
}
else {
$fields = array("uid" => ($user->uid ? $user->uid : 0), "body", "comment" => 2, "teaser", "title", "type" => $node->type);