- submit page will now use $edit[teaser/body] if available in the initial request.

4.1.x
Kjartan Mannes 2002-10-15 09:40:40 +00:00
parent 1e97129589
commit 1ff4da96e3
2 changed files with 4 additions and 4 deletions

View File

@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
}
function node_add($type) {
global $user;
global $user, $edit;
if (!user_access("post content")) {
return message_access();
@ -928,7 +928,7 @@ function node_add($type) {
if ($type && node_access("create", $type)) {
// Initialize settings
$output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0));
$output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0, "title" => check_input($edit["title"]), "body" => check_input($edit["body"])));
}
else {

View File

@ -915,7 +915,7 @@ function node_form($edit, $error = NULL) {
}
function node_add($type) {
global $user;
global $user, $edit;
if (!user_access("post content")) {
return message_access();
@ -928,7 +928,7 @@ function node_add($type) {
if ($type && node_access("create", $type)) {
// Initialize settings
$output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0));
$output = node_form(array("uid" => $user->uid, "name" => $user->name, "type" => $type, "status" => 1, "promote" => !module_exist("queue"), "moderate" => module_exist("queue"), "comment" => module_exist("queue") ? 2 : 0, "title" => check_input($edit["title"]), "body" => check_input($edit["body"])));
}
else {