summaryrefslogtreecommitdiff
path: root/modules/comment/comment.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-31 12:02:24 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-31 12:02:24 +0000
commit5ba50b3fe83b1724b6cec12ded62663167a08e14 (patch)
tree20948b0d3e841b7a41ec7d5e511d70d278e24190 /modules/comment/comment.pages.inc
parentd813e3679c57da312cc0de61da90ff2c2eff70a6 (diff)
downloadbrdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.gz
brdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.bz2
- Patch #350984 by Moshe: kick comment rendering out of node module.
Diffstat (limited to 'modules/comment/comment.pages.inc')
-rw-r--r--modules/comment/comment.pages.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.pages.inc b/modules/comment/comment.pages.inc
index 4b7d08413..a4c94e22a 100644
--- a/modules/comment/comment.pages.inc
+++ b/modules/comment/comment.pages.inc
@@ -96,7 +96,7 @@ function comment_reply($node, $pid = NULL) {
}
// Should we show the reply box?
- if (node_comment_mode($node->nid) != COMMENT_NODE_READ_WRITE) {
+ if ($node->comment != COMMENT_NODE_READ_WRITE) {
drupal_set_message(t("This discussion is closed: you can't post new comments."), 'error');
drupal_goto("node/$node->nid");
}