Commit 19ba382a authored by drumm's avatar drumm
Browse files

#70097 by magico. Fix the ordering of blog pages.

parent 9f641766
...@@ -180,7 +180,7 @@ function blog_page_last() { ...@@ -180,7 +180,7 @@ function blog_page_last() {
$output = ''; $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)) { while ($node = db_fetch_object($result)) {
$output .= node_view(node_load($node->nid), 1); $output .= node_view(node_load($node->nid), 1);
......
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