Commit 1ff4da96 authored by Kjartan's avatar Kjartan

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

parent 1e971295
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment