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
7c63dbcc
Commit
7c63dbcc
authored
Mar 11, 2003
by
Kjartan
Browse files
- Fixing typos.
parent
cd31f113
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
7c63dbcc
...
...
@@ -879,11 +879,11 @@ function node_validate($node, &$error) {
// Validate for normal users:
$node
->
uid
=
$user
->
uid
?
$user
->
uid
:
0
;
// Force defaults in case people modify the form:
$node
->
status
=
variable_get
(
"node_status_
$
edit
->type
"
,
1
);
$node
->
promote
=
variable_get
(
"node_promote_
$
edit
->type
"
,
1
);
$node
->
moderate
=
variable_get
(
"node_moderate_
$
edit
->type
"
,
0
);
$node
->
static
=
variable_get
(
"node_static_
$
edit
->type
"
,
0
);
$node
->
revision
=
variable_get
(
"node_revision_
$
edit
->type
"
,
0
);
$node
->
status
=
variable_get
(
"node_status_
$
node
->type
"
,
1
);
$node
->
promote
=
variable_get
(
"node_promote_
$
node
->type
"
,
1
);
$node
->
moderate
=
variable_get
(
"node_moderate_
$
node
->type
"
,
0
);
$node
->
static
=
variable_get
(
"node_static_
$
node
->type
"
,
0
);
$node
->
revision
=
variable_get
(
"node_revision_
$
node
->type
"
,
0
);
unset
(
$node
->
created
);
}
...
...
modules/node/node.module
View file @
7c63dbcc
...
...
@@ -879,11 +879,11 @@ function node_validate($node, &$error) {
// Validate for normal users:
$node
->
uid
=
$user
->
uid
?
$user
->
uid
:
0
;
// Force defaults in case people modify the form:
$node
->
status
=
variable_get
(
"node_status_
$
edit
->type
"
,
1
);
$node
->
promote
=
variable_get
(
"node_promote_
$
edit
->type
"
,
1
);
$node
->
moderate
=
variable_get
(
"node_moderate_
$
edit
->type
"
,
0
);
$node
->
static
=
variable_get
(
"node_static_
$
edit
->type
"
,
0
);
$node
->
revision
=
variable_get
(
"node_revision_
$
edit
->type
"
,
0
);
$node
->
status
=
variable_get
(
"node_status_
$
node
->type
"
,
1
);
$node
->
promote
=
variable_get
(
"node_promote_
$
node
->type
"
,
1
);
$node
->
moderate
=
variable_get
(
"node_moderate_
$
node
->type
"
,
0
);
$node
->
static
=
variable_get
(
"node_static_
$
node
->type
"
,
0
);
$node
->
revision
=
variable_get
(
"node_revision_
$
node
->type
"
,
0
);
unset
(
$node
->
created
);
}
...
...
Write
Preview
Supports
Markdown
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