Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
7ebd772f
Commit
7ebd772f
authored
Oct 16, 2004
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#10664
by TDobes: fixed collapsed comments + updated the code comments.
parent
ba276192
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
6 deletions
+14
-6
modules/comment.module
modules/comment.module
+6
-1
modules/comment/comment.module
modules/comment/comment.module
+6
-1
modules/node.module
modules/node.module
+1
-2
modules/node/node.module
modules/node/node.module
+1
-2
No files found.
modules/comment.module
View file @
7ebd772f
...
...
@@ -136,6 +136,11 @@ function comment_menu($may_cache) {
$items
[]
=
array
(
'path'
=>
'comment'
,
'title'
=>
t
(
'reply to comment'
),
'callback'
=>
'comment_save_settings'
,
'access'
=>
1
,
'type'
=>
MENU_CALLBACK
);
}
else
if
((
arg
(
0
)
==
'node'
)
&&
is_numeric
(
arg
(
1
))
&&
is_numeric
(
arg
(
2
)))
{
$items
[]
=
array
(
'path'
=>
(
'node/'
.
arg
(
1
)
.
'/'
.
arg
(
2
)),
'title'
=>
t
(
'view'
),
'callback'
=>
'node_page'
,
'type'
=>
MENU_CALLBACK
);
}
return
$items
;
}
...
...
@@ -1577,7 +1582,7 @@ function theme_comment($comment, $links = 0) {
function
theme_comment_folded
(
$comment
)
{
$output
=
"<div class=
\"
comment-folded
\"
>
\n
"
;
$output
.
=
' <span class="subject">'
.
l
(
$comment
->
subject
,
comment_node_url
()
.
'/
view/
'
.
$comment
->
cid
,
NULL
,
NULL
,
"comment-
$comment->cid
"
)
.
(
$comment
->
new
?
' '
.
theme
(
'mark'
)
:
''
)
.
'</span> '
;
$output
.
=
' <span class="subject">'
.
l
(
$comment
->
subject
,
comment_node_url
()
.
'/'
.
$comment
->
cid
,
NULL
,
NULL
,
"comment-
$comment->cid
"
)
.
(
$comment
->
new
?
' '
.
theme
(
'mark'
)
:
''
)
.
'</span> '
;
$output
.
=
'<span class="credit">'
.
t
(
'by'
)
.
' '
.
format_name
(
$comment
)
.
"</span>
\n
"
;
$output
.
=
"</div>
\n
"
;
return
$output
;
...
...
modules/comment/comment.module
View file @
7ebd772f
...
...
@@ -136,6 +136,11 @@ function comment_menu($may_cache) {
$items
[]
=
array
(
'path'
=>
'comment'
,
'title'
=>
t
(
'reply to comment'
),
'callback'
=>
'comment_save_settings'
,
'access'
=>
1
,
'type'
=>
MENU_CALLBACK
);
}
else
if
((
arg
(
0
)
==
'node'
)
&&
is_numeric
(
arg
(
1
))
&&
is_numeric
(
arg
(
2
)))
{
$items
[]
=
array
(
'path'
=>
(
'node/'
.
arg
(
1
)
.
'/'
.
arg
(
2
)),
'title'
=>
t
(
'view'
),
'callback'
=>
'node_page'
,
'type'
=>
MENU_CALLBACK
);
}
return
$items
;
}
...
...
@@ -1577,7 +1582,7 @@ function theme_comment($comment, $links = 0) {
function
theme_comment_folded
(
$comment
)
{
$output
=
"<div class=
\"
comment-folded
\"
>
\n
"
;
$output
.
=
' <span class="subject">'
.
l
(
$comment
->
subject
,
comment_node_url
()
.
'/
view/
'
.
$comment
->
cid
,
NULL
,
NULL
,
"comment-
$comment->cid
"
)
.
(
$comment
->
new
?
' '
.
theme
(
'mark'
)
:
''
)
.
'</span> '
;
$output
.
=
' <span class="subject">'
.
l
(
$comment
->
subject
,
comment_node_url
()
.
'/'
.
$comment
->
cid
,
NULL
,
NULL
,
"comment-
$comment->cid
"
)
.
(
$comment
->
new
?
' '
.
theme
(
'mark'
)
:
''
)
.
'</span> '
;
$output
.
=
'<span class="credit">'
.
t
(
'by'
)
.
' '
.
format_name
(
$comment
)
.
"</span>
\n
"
;
$output
.
=
"</div>
\n
"
;
return
$output
;
...
...
modules/node.module
View file @
7ebd772f
...
...
@@ -1449,9 +1449,8 @@ function node_page() {
$op
=
$_POST
[
'op'
]
?
$_POST
[
'op'
]
:
arg
(
1
);
$edit
=
$_POST
[
'edit'
];
// Temporary solution for backward compatibility.
if
(
is_numeric
(
$op
))
{
$op
=
arg
(
2
)
?
arg
(
2
)
:
'view'
;
$op
=
(
arg
(
2
)
&&
!
is_numeric
(
arg
(
2
))
)
?
arg
(
2
)
:
'view'
;
}
switch
(
$op
)
{
...
...
modules/node/node.module
View file @
7ebd772f
...
...
@@ -1449,9 +1449,8 @@ function node_page() {
$op
=
$_POST
[
'op'
]
?
$_POST
[
'op'
]
:
arg
(
1
);
$edit
=
$_POST
[
'edit'
];
// Temporary solution for backward compatibility.
if
(
is_numeric
(
$op
))
{
$op
=
arg
(
2
)
?
arg
(
2
)
:
'view'
;
$op
=
(
arg
(
2
)
&&
!
is_numeric
(
arg
(
2
))
)
?
arg
(
2
)
:
'view'
;
}
switch
(
$op
)
{
...
...
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