diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-27 16:02:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-27 16:02:31 +0000 |
commit | 0a352809783d3f336b9da862f51a244a135134d4 (patch) | |
tree | 3ecd41160be1d4c06e22a243505bcfa941a25f96 /modules/blog/blog.module | |
parent | d4e7affba8faf00bccc48ec6028b9f20e62a35fc (diff) | |
download | brdo-0a352809783d3f336b9da862f51a244a135134d4.tar.gz brdo-0a352809783d3f336b9da862f51a244a135134d4.tar.bz2 |
- Patch #8603 by TDobes: added support for sticky forum topics to the blog
and forum module.
Diffstat (limited to 'modules/blog/blog.module')
-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 7e7eca288..12efee5e4 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -143,7 +143,7 @@ function blog_page_user($uid) { $title = t("%name's blog", array('%name' => $account->name)); $output = ''; - $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", variable_get('default_nodes_main', 10)); + $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY sticky DESC, nid DESC", variable_get('default_nodes_main', 10)); while ($node = db_fetch_object($result)) { $output .= node_view(node_load(array('nid' => $node->nid)), 1); } |