diff options
| author | wjames5 <will@tekimaki.com> | 2007-08-23 17:38:17 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-08-23 17:38:17 +0000 |
| commit | dec314483dc02cb2c7f0f268ce7c956cf439c35c (patch) | |
| tree | b412abc05f3e394e350f90a91e2e6ba020c3bc7a /crosspost.php | |
| parent | 15c8715c6e6da1af6ed36bd470f2135db01a1574 (diff) | |
| download | blogs-dec314483dc02cb2c7f0f268ce7c956cf439c35c.tar.gz blogs-dec314483dc02cb2c7f0f268ce7c956cf439c35c.tar.bz2 blogs-dec314483dc02cb2c7f0f268ce7c956cf439c35c.zip | |
when mapping a post to a blog check the publish time against current time, if the publish time is greater set it as the mapping time - for proper display order of posts in a blog
Diffstat (limited to 'crosspost.php')
| -rw-r--r-- | crosspost.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crosspost.php b/crosspost.php index a38d318..b0e68e1 100644 --- a/crosspost.php +++ b/crosspost.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/crosspost.php,v 1.3 2007/06/22 09:05:13 lsces Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/crosspost.php,v 1.4 2007/08/23 17:38:17 wjames5 Exp $ * @package blogs * @subpackage functions * @@ -23,7 +23,7 @@ $gBlog = new BitBlog(); if( isset( $_REQUEST['crosspost_post']) || isset($_REQUEST['save_post_exit'] ) ) { - if( $gContent->isValid() && $gContent->storePostMap( $gContent->getField( 'content_id' ), $_REQUEST['blog_content_id'] ) ) { + if( $gContent->isValid() && $gContent->storePostMap( $gContent->mInfo, $_REQUEST['blog_content_id'] ) ) { $gContent->load(); bit_redirect( $gContent->getDisplayUrl() ); } |
