diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-09 21:55:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-09 21:55:51 +0000 |
commit | 6334ee20933bfcfb8bc958514dd16304d421f081 (patch) | |
tree | fb3b7696232b37431ae714ed4ec60f10a7e721dc /modules/node/node.module | |
parent | 87dbb8236ec394c1b05e9b10c98d5c87fc42284c (diff) | |
download | brdo-6334ee20933bfcfb8bc958514dd16304d421f081.tar.gz brdo-6334ee20933bfcfb8bc958514dd16304d421f081.tar.bz2 |
- Code improvement: forgot to update an URL to the clean URL scheme.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index dd81f731d..a600e0d04 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -455,8 +455,8 @@ function node_link($type, $node = 0, $main = 0) { menu_add("content management", url("admin/node"), "Content management.", NULL, NULL); menu_add("submit new content", url("node/add"), "Submit new content.", NULL, "content management", -1, 1); - menu_add("new or updated posts", url("admin/node/nodes&query=0"), "Display all new or updated posts.", NULL, "content management", 0, 1); - menu_add("posts that await approval", url("admin/node/nodes&query=1"), "Display posts that await approval.", NULL, "content management", 0, 1); + menu_add("new or updated posts", url("admin/node/nodes/0"), "Display all new or updated posts.", NULL, "content management", 0, 1); + menu_add("posts that await approval", url("admin/node/nodes/1"), "Display posts that await approval.", NULL, "content management", 0, 1); menu_add("search content", url("admin/node/search"), "Search a post.", $search, "content management", 5); menu_add("help", url("admin/node/help"), "More information about content management.", NULL, "content management", 7); } @@ -505,8 +505,8 @@ function node_admin_edit($node) { } function node_admin_nodes() { - global $query; + $query = arg(3); $queries = array("ORDER BY n.changed DESC", "WHERE n.status = 0 OR n.moderate = 1 ORDER BY n.changed DESC"); $result = pager_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid ". $queries[$query ? $query : 0], 50); |