Commit b1f47584 authored by Dries's avatar Dries
Browse files

- Fixed typo.  Patch by Garym.  (Something went wrong with my earlier commit.)
parent 20e8bc12
...@@ -471,7 +471,7 @@ function node_link($type, $node = 0, $main = 0) { ...@@ -471,7 +471,7 @@ function node_link($type, $node = 0, $main = 0) {
menu("admin/node", "node management", "node_admin"); menu("admin/node", "node management", "node_admin");
menu("admin/node/nodes", "post overview"); menu("admin/node/nodes", "post overview");
menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0); menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0);
menu("admin/node/nodes/1", "posts that await approval", "node_admin", NULL, 1); menu("admin/node/nodes/1", "approval queue", "node_admin", NULL, 1);
menu("admin/node/search", "search post", "node_admin", $help["search"], 8); menu("admin/node/search", "search post", "node_admin", $help["search"], 8);
menu("admin/node/help", "help", "node_help", NULL, 9); menu("admin/node/help", "help", "node_help", NULL, 9);
menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1); menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1);
...@@ -1304,19 +1304,14 @@ function node_update_index() { ...@@ -1304,19 +1304,14 @@ function node_update_index() {
// last run date for the nodes update. // last run date for the nodes update.
return array("last_update" => "node_cron_last", return array("last_update" => "node_cron_last",
"node_type" => "node", "node_type" => "node",
"select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_las node_access("view", $node)) { "select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_last", 1) . " or changed > " . variable_get("node_cron_last", 1) . ")");
$links[] = l(t("view"), "node/view/$nid"); }
}
if ($nid && node_access("update", $node)) { function node_nodeapi(&$node, $op, $arg = 0) {
$links[] = l(t("edit"), "node/edit/$nid"); switch ($op) {
case "fields":
return array("nid", "uid", "type", "title", "teaser", "body", "revisions", "score", "status", "promote", "static", "created", "changed", "users", "votes");
} }
$output .= "<p>". theme("links", $links) ."</p>";
return $output;
} }
function node_delete($edit) { ?>
$node = node_load(array("nid" => $edit["
\ No newline at end of file
...@@ -471,7 +471,7 @@ function node_link($type, $node = 0, $main = 0) { ...@@ -471,7 +471,7 @@ function node_link($type, $node = 0, $main = 0) {
menu("admin/node", "node management", "node_admin"); menu("admin/node", "node management", "node_admin");
menu("admin/node/nodes", "post overview"); menu("admin/node/nodes", "post overview");
menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0); menu("admin/node/nodes/0", "new or updated posts", "node_admin", NULL, 0);
menu("admin/node/nodes/1", "posts that await approval", "node_admin", NULL, 1); menu("admin/node/nodes/1", "approval queue", "node_admin", NULL, 1);
menu("admin/node/search", "search post", "node_admin", $help["search"], 8); menu("admin/node/search", "search post", "node_admin", $help["search"], 8);
menu("admin/node/help", "help", "node_help", NULL, 9); menu("admin/node/help", "help", "node_help", NULL, 9);
menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1); menu("admin/node/edit", "edit node", "node_admin", NULL, 0, 1);
...@@ -1304,19 +1304,14 @@ function node_update_index() { ...@@ -1304,19 +1304,14 @@ function node_update_index() {
// last run date for the nodes update. // last run date for the nodes update.
return array("last_update" => "node_cron_last", return array("last_update" => "node_cron_last",
"node_type" => "node", "node_type" => "node",
"select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_las node_access("view", $node)) { "select" => "SELECT n.nid as lno, n.title as text1, n.body as text2 FROM node n WHERE n.status = 1 AND moderate = 0 and (created > " . variable_get("node_cron_last", 1) . " or changed > " . variable_get("node_cron_last", 1) . ")");
$links[] = l(t("view"), "node/view/$nid"); }
}
if ($nid && node_access("update", $node)) { function node_nodeapi(&$node, $op, $arg = 0) {
$links[] = l(t("edit"), "node/edit/$nid"); switch ($op) {
case "fields":
return array("nid", "uid", "type", "title", "teaser", "body", "revisions", "score", "status", "promote", "static", "created", "changed", "users", "votes");
} }
$output .= "<p>". theme("links", $links) ."</p>";
return $output;
} }
function node_delete($edit) { ?>
$node = node_load(array("nid" => $edit["
\ No newline at end of file
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