Commit 94f290c8 authored by Dries's avatar Dries
Browse files

- Patch #38849 by wtanaka: forum icon does not display as locked (aka closed)...

- Patch #38849 by wtanaka: forum icon does not display as locked (aka closed) if comments are "disabled" instead of "read only".
parent ab0232c0
......@@ -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';
}
......
......@@ -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';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment