Commit a10ca909 authored by Steven Wittens's avatar Steven Wittens

#93897: Fix comment de-indenting multiple levels at a time.

parent a0ca5362
......@@ -978,12 +978,15 @@ function comment_render($node, $cid = 0) {
if ($comment->depth > $last_depth) {
$divs++;
$output .= '<div class="indented">';
$last_depth++;
}
else if ($comment->depth < $last_depth) {
$divs--;
$output .= '</div>';
else {
while ($comment->depth < $last_depth) {
$divs--;
$output .= '</div>';
$last_depth--;
}
}
$last_depth = $comment->depth;
if ($mode == COMMENT_MODE_FLAT_COLLAPSED) {
$output .= theme('comment_flat_collapsed', $comment);
......
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