Skip to content
Snippets Groups Projects
Commit 7c63dbcc authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- Fixing typos.

parent cd31f113
No related branches found
No related tags found
No related merge requests found
...@@ -879,11 +879,11 @@ function node_validate($node, &$error) { ...@@ -879,11 +879,11 @@ function node_validate($node, &$error) {
// Validate for normal users: // Validate for normal users:
$node->uid = $user->uid ? $user->uid : 0; $node->uid = $user->uid ? $user->uid : 0;
// Force defaults in case people modify the form: // Force defaults in case people modify the form:
$node->status = variable_get("node_status_$edit->type", 1); $node->status = variable_get("node_status_$node->type", 1);
$node->promote = variable_get("node_promote_$edit->type", 1); $node->promote = variable_get("node_promote_$node->type", 1);
$node->moderate = variable_get("node_moderate_$edit->type", 0); $node->moderate = variable_get("node_moderate_$node->type", 0);
$node->static = variable_get("node_static_$edit->type", 0); $node->static = variable_get("node_static_$node->type", 0);
$node->revision = variable_get("node_revision_$edit->type", 0); $node->revision = variable_get("node_revision_$node->type", 0);
unset($node->created); unset($node->created);
} }
......
...@@ -879,11 +879,11 @@ function node_validate($node, &$error) { ...@@ -879,11 +879,11 @@ function node_validate($node, &$error) {
// Validate for normal users: // Validate for normal users:
$node->uid = $user->uid ? $user->uid : 0; $node->uid = $user->uid ? $user->uid : 0;
// Force defaults in case people modify the form: // Force defaults in case people modify the form:
$node->status = variable_get("node_status_$edit->type", 1); $node->status = variable_get("node_status_$node->type", 1);
$node->promote = variable_get("node_promote_$edit->type", 1); $node->promote = variable_get("node_promote_$node->type", 1);
$node->moderate = variable_get("node_moderate_$edit->type", 0); $node->moderate = variable_get("node_moderate_$node->type", 0);
$node->static = variable_get("node_static_$edit->type", 0); $node->static = variable_get("node_static_$node->type", 0);
$node->revision = variable_get("node_revision_$edit->type", 0); $node->revision = variable_get("node_revision_$node->type", 0);
unset($node->created); unset($node->created);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment