diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-19 23:19:53 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-02-19 23:19:53 +0000 |
commit | fc88037a63cb47733f05496e55ba97fd55cdc291 (patch) | |
tree | 46ffbd5780fcbb61dc9ff9e0fb0e60c65a7e31c4 /modules/node.module | |
parent | a6f0fd4daee001cf0384ad40da55083f79584f35 (diff) | |
download | brdo-fc88037a63cb47733f05496e55ba97fd55cdc291.tar.gz brdo-fc88037a63cb47733f05496e55ba97fd55cdc291.tar.bz2 |
- minor modification to node_page(). It now acts like node.php.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module index 983dcfd2b..2b49a090d 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1167,7 +1167,7 @@ function node_page() { $theme->box($title, node_delete($edit)); break; default: - $result = db_query("SELECT nid, type FROM node WHERE ". ($meta ? "attributes LIKE '%". check_input($meta) ."%' AND " : "") ." promote = '1' AND status = '1' ORDER BY static DESC, created DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get("default_nodes_main", 10))); + $result = db_query("SELECT nid, type FROM node WHERE ". ($meta ? "attributes LIKE '%". check_input($meta) ."%' AND " : "") . ($id ? "nid = '$id'" : "promote = '1'") ." AND status = '1' ORDER BY static DESC, created DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get("default_nodes_main", 10))); while ($node = db_fetch_object($result)) { node_view(node_load(array("nid" => $node->nid, "type" => $node->type)), 1); } |