diff options
| author | wjames5 <will@tekimaki.com> | 2007-08-24 10:49:10 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-08-24 10:49:10 +0000 |
| commit | 47baeab36f58c371ff1a737c300b7d72d80e6330 (patch) | |
| tree | b7b875a1b0e7d299d6ceaf10f4015eb7fff0583a /templates/center_list_blog_posts.php | |
| parent | dec314483dc02cb2c7f0f268ce7c956cf439c35c (diff) | |
| download | blogs-47baeab36f58c371ff1a737c300b7d72d80e6330.tar.gz blogs-47baeab36f58c371ff1a737c300b7d72d80e6330.tar.bz2 blogs-47baeab36f58c371ff1a737c300b7d72d80e6330.zip | |
move default posts sort order from getList where its not possible and set it in center_list_blog_posts
Diffstat (limited to 'templates/center_list_blog_posts.php')
| -rw-r--r-- | templates/center_list_blog_posts.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/center_list_blog_posts.php b/templates/center_list_blog_posts.php index 1776fb6..4c4037b 100644 --- a/templates/center_list_blog_posts.php +++ b/templates/center_list_blog_posts.php @@ -60,6 +60,10 @@ if( @BitBase::verifyId( $_REQUEST['group_id'] ) ) { $listHash['group_id'] = $_REQUEST['group_id']; } +if ( empty( $listHash['sort_mode'] ) ){ + $listHash['sort_mode'] = 'publish_date_desc'; +} + $blogPosts = $blogPost->getList( $listHash ); $gBitSmarty->assign_by_ref( 'gQueryUserId', $listHash['user_id'] ); |
