From 94f290c8eeb6c9284b11005c79c72a9101f7d140 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 3 Dec 2005 10:02:23 +0000 Subject: - Patch #38849 by wtanaka: forum icon does not display as locked (aka closed) if comments are "disabled" instead of "read only". --- modules/forum/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index dd409b9cd..935150565 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -983,7 +983,7 @@ function _forum_icon($new_posts, $num_posts = 0, $comment_mode = 0, $sticky = 0) $icon = $new_posts ? 'new' : 'default'; } - if ($comment_mode == 1) { + if ($comment_mode == COMMENT_NODE_READ_ONLY || $comment_mode == COMMENT_NODE_DISABLED) { $icon = 'closed'; } -- cgit v1.2.3