Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
a10ca909
Commit
a10ca909
authored
Dec 12, 2006
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#93897
: Fix comment de-indenting multiple levels at a time.
parent
a0ca5362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/comment/comment.module
modules/comment/comment.module
+7
-4
No files found.
modules/comment/comment.module
View file @
a10ca909
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment