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
229
Merge Requests
229
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
a6dac9d2
Commit
a6dac9d2
authored
Jan 31, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Modified patch
#46227
by chx: comment token is broken.
parent
4ffb77ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
modules/comment.module
modules/comment.module
+1
-2
modules/comment/comment.module
modules/comment/comment.module
+1
-2
No files found.
modules/comment.module
View file @
a6dac9d2
...
...
@@ -496,7 +496,6 @@ function comment_reply($nid, $pid = NULL) {
}
else
if
(
user_access
(
'access content'
))
{
$output
.
=
node_view
(
$node
);
$pid
=
0
;
}
// should we show the reply box?
...
...
@@ -1350,7 +1349,7 @@ function comment_form($edit, $title = NULL) {
// Only show post button if preview is optional or if we are in preview mode.
// We show the post button in preview mode even if there are form errors so that
// optional form elements (e.g., captcha) can be updated in preview mode.
if
(
(
variable_get
(
'comment_preview'
,
COMMENT_PREVIEW_REQUIRED
)
==
COMMENT_PREVIEW_OPTIONAL
)
||
(
$op
==
t
(
'Preview comment'
))
||
(
$op
==
t
(
'Post comment'
)))
{
if
(
!
form_get_errors
()
&&
((
variable_get
(
'comment_preview'
,
COMMENT_PREVIEW_REQUIRED
)
==
COMMENT_PREVIEW_OPTIONAL
)
||
(
$op
==
t
(
'Preview comment'
))
||
(
$op
==
t
(
'Post comment'
)
)))
{
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Post comment'
),
'#weight'
=>
20
);
}
...
...
modules/comment/comment.module
View file @
a6dac9d2
...
...
@@ -496,7 +496,6 @@ function comment_reply($nid, $pid = NULL) {
}
else
if
(
user_access
(
'access content'
))
{
$output
.
=
node_view
(
$node
);
$pid
=
0
;
}
// should we show the reply box?
...
...
@@ -1350,7 +1349,7 @@ function comment_form($edit, $title = NULL) {
// Only show post button if preview is optional or if we are in preview mode.
// We show the post button in preview mode even if there are form errors so that
// optional form elements (e.g., captcha) can be updated in preview mode.
if
(
(
variable_get
(
'comment_preview'
,
COMMENT_PREVIEW_REQUIRED
)
==
COMMENT_PREVIEW_OPTIONAL
)
||
(
$op
==
t
(
'Preview comment'
))
||
(
$op
==
t
(
'Post comment'
)))
{
if
(
!
form_get_errors
()
&&
((
variable_get
(
'comment_preview'
,
COMMENT_PREVIEW_REQUIRED
)
==
COMMENT_PREVIEW_OPTIONAL
)
||
(
$op
==
t
(
'Preview comment'
))
||
(
$op
==
t
(
'Post comment'
)
)))
{
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Post comment'
),
'#weight'
=>
20
);
}
...
...
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