diff options
| author | lsces <lester@lsces.co.uk> | 2014-07-02 08:22:21 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-07-02 08:22:21 +0100 |
| commit | 22ab4de11ce6f5bbd6cfa13af0c750b7593b6f19 (patch) | |
| tree | 05abcec09a300496d2a625177f6fbad9105f6f15 | |
| parent | 0d0181e25a44284a4251a099202a38bb74ccd26c (diff) | |
| download | blogs-22ab4de11ce6f5bbd6cfa13af0c750b7593b6f19.tar.gz blogs-22ab4de11ce6f5bbd6cfa13af0c750b7593b6f19.tar.bz2 blogs-22ab4de11ce6f5bbd6cfa13af0c750b7593b6f19.zip | |
Default to published date
Also need to fix the default dates used for publishing so they allow new blogs
to appear by default. Currently have to set visible range manually.
| -rw-r--r-- | BitBlogPost.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BitBlogPost.php b/BitBlogPost.php index 655a134..b204b94 100644 --- a/BitBlogPost.php +++ b/BitBlogPost.php @@ -786,7 +786,7 @@ class BitBlogPost extends LibertyMime { $joinSql .= " LEFT OUTER JOIN `".BIT_DB_PREFIX."blogs` b ON ( bpm.`blog_content_id`=b.`content_id` ) "; // " ON ( b.`content_id` = bpm.`blog_content_id` AND bp.`content_id` = bpm.`post_content_id` )"; $whereSql .= ' AND b.`blog_id` = ? '; - $pListHash['sort_mode'] = 'date_added_desc'; + $pListHash['sort_mode'] = 'publish_date_desc'; } if( @$this->verifyId( $pListHash['post_id_gt'] ) ) { |
