diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-03 10:02:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-03 10:02:23 +0000 |
commit | 94f290c8eeb6c9284b11005c79c72a9101f7d140 (patch) | |
tree | e2a87806db438114d75002ac5da1758186b562c0 | |
parent | ab0232c022f4fbc74828c75f3ef47991883c63c2 (diff) | |
download | brdo-94f290c8eeb6c9284b11005c79c72a9101f7d140.tar.gz brdo-94f290c8eeb6c9284b11005c79c72a9101f7d140.tar.bz2 |
- Patch #38849 by wtanaka: forum icon does not display as locked (aka closed) if comments are "disabled" instead of "read only".
-rw-r--r-- | modules/forum.module | 2 | ||||
-rw-r--r-- | modules/forum/forum.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/forum.module b/modules/forum.module index dd409b9cd..935150565 100644 --- a/modules/forum.module +++ b/modules/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'; } 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'; } |