Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
46392b26
Commit
46392b26
authored
Dec 15, 2006
by
Steven Wittens
Browse files
#92242
: Don't indent when comment view is flat.
parent
57c5355a
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
46392b26
...
...
@@ -975,16 +975,18 @@ function comment_render($node, $cid = 0) {
$comment
->
name
=
$comment
->
uid
?
$comment
->
registered_name
:
$comment
->
name
;
$comment
->
depth
=
count
(
explode
(
'.'
,
$comment
->
thread
))
-
1
;
if
(
$comment
->
depth
>
$last_depth
)
{
$divs
++
;
$output
.
=
'<div class="indented">'
;
$last_depth
++
;
}
else
{
while
(
$comment
->
depth
<
$last_depth
)
{
$divs
--
;
$output
.
=
'</div>'
;
$last_depth
--
;
if
(
$mode
==
COMMENT_MODE_THREADED_COLLAPSED
||
$mode
==
COMMENT_MODE_THREADED_EXPANDED
)
{
if
(
$comment
->
depth
>
$last_depth
)
{
$divs
++
;
$output
.
=
'<div class="indented">'
;
$last_depth
++
;
}
else
{
while
(
$comment
->
depth
<
$last_depth
)
{
$divs
--
;
$output
.
=
'</div>'
;
$last_depth
--
;
}
}
}
...
...
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