diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-17 10:15:13 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-17 10:15:13 +0000 |
commit | 1b573fb0ba75bd09270aa2c93b11404b87f1761e (patch) | |
tree | d268ecd7e9aca65acd8e75ad10d664fa268b8785 /modules/node/node.module | |
parent | 0bd45edcb7dd5d46e1d0e915523dd19fe104b5af (diff) | |
download | brdo-1b573fb0ba75bd09270aa2c93b11404b87f1761e.tar.gz brdo-1b573fb0ba75bd09270aa2c93b11404b87f1761e.tar.bz2 |
- book log is now saved and shown when necessary.
- fixed poll title not showing up.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 069d6eeaf..cda4d98e3 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1226,7 +1226,7 @@ function node_page() { // this is an AND $result = db_query("SELECT n.nid, type, count(*) AS c FROM node n LEFT JOIN term_node r ON n.nid = r.nid WHERE tid IN (".implode(",", $terms).") AND ". ($id ? "nid = '$id'" : "promote = '1'") ." AND status = '1' GROUP BY n.nid HAVING c = ".count($terms)." ORDER BY static DESC, created DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get("default_nodes_main", 10))); } else { - $result = db_query("SELECT nid, type FROM node WHERE ". ($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))); + $result = db_query("SELECT nid, type FROM node WHERE ". ($id ? "nid = '$id'" : "promote = '1'") ." AND status = '1' ORDER BY static DESC, changed DESC LIMIT ". ($user->nodes ? $user->nodes : variable_get("default_nodes_main", 10))); } while ($node = db_fetch_object($result)) { |