diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-26 00:03:41 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-26 00:03:41 +0000 |
commit | 19ba382adb65dc3c12a966c3ea662364885d443a (patch) | |
tree | f9c1ac9404f40d8e3d54f7e55e7e3931acccbf78 /modules | |
parent | 9f641766a47b0eb0cb36e129c662ec51759564dc (diff) | |
download | brdo-19ba382adb65dc3c12a966c3ea662364885d443a.tar.gz brdo-19ba382adb65dc3c12a966c3ea662364885d443a.tar.bz2 |
#70097 by magico. Fix the ordering of blog pages.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/blog/blog.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 78d1337fa..5ade1fcc6 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -180,7 +180,7 @@ function blog_page_last() { $output = ''; - $result = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"), variable_get('default_nodes_main', 10)); + $result = pager_query(db_rewrite_sql("SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC"), variable_get('default_nodes_main', 10)); while ($node = db_fetch_object($result)) { $output .= node_view(node_load($node->nid), 1); |