Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
c54a0f57
Commit
c54a0f57
authored
Mar 6, 2006
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#51543
by wtanaka: clicking on 'add new comment' takes you to the wrong place.
parent
21a3c243
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/comment.module
+1
-1
1 addition, 1 deletion
modules/comment.module
modules/comment/comment.module
+1
-1
1 addition, 1 deletion
modules/comment/comment.module
with
2 additions
and
2 deletions
modules/comment.module
+
1
−
1
View file @
c54a0f57
...
@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
...
@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else
{
else
{
if
(
$node
->
comment
==
COMMENT_NODE_READ_WRITE
)
{
if
(
$node
->
comment
==
COMMENT_NODE_READ_WRITE
)
{
if
(
user_access
(
'post comments'
))
{
if
(
user_access
(
'post comments'
))
{
$links
[]
=
l
(
t
(
'add new comment'
),
"comment/reply/
$node->nid
"
,
array
(
'title'
=>
t
(
'Add a new comment to this page.'
)));
$links
[]
=
l
(
t
(
'add new comment'
),
"comment/reply/
$node->nid
"
,
array
(
'title'
=>
t
(
'Add a new comment to this page.'
))
,
NULL
,
'comment-form'
);
}
}
else
{
else
{
$links
[]
=
theme
(
'comment_post_forbidden'
,
$node
->
nid
);
$links
[]
=
theme
(
'comment_post_forbidden'
,
$node
->
nid
);
...
...
This diff is collapsed.
Click to expand it.
modules/comment/comment.module
+
1
−
1
View file @
c54a0f57
...
@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
...
@@ -203,7 +203,7 @@ function comment_link($type, $node = 0, $main = 0) {
else
{
else
{
if
(
$node
->
comment
==
COMMENT_NODE_READ_WRITE
)
{
if
(
$node
->
comment
==
COMMENT_NODE_READ_WRITE
)
{
if
(
user_access
(
'post comments'
))
{
if
(
user_access
(
'post comments'
))
{
$links
[]
=
l
(
t
(
'add new comment'
),
"comment/reply/
$node->nid
"
,
array
(
'title'
=>
t
(
'Add a new comment to this page.'
)));
$links
[]
=
l
(
t
(
'add new comment'
),
"comment/reply/
$node->nid
"
,
array
(
'title'
=>
t
(
'Add a new comment to this page.'
))
,
NULL
,
'comment-form'
);
}
}
else
{
else
{
$links
[]
=
theme
(
'comment_post_forbidden'
,
$node
->
nid
);
$links
[]
=
theme
(
'comment_post_forbidden'
,
$node
->
nid
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment