diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-24 20:49:32 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-24 20:49:32 +0000 |
| commit | 7dc5f7acdcb59b21791739016e07ee7032305e22 (patch) | |
| tree | 2e4fda6b2fbec7fb28ada1837cb927d68fc21989 /view_post.php | |
| parent | b8ff879105513e1c8b702e2dd8a666d767778d97 (diff) | |
| download | blogs-7dc5f7acdcb59b21791739016e07ee7032305e22.tar.gz blogs-7dc5f7acdcb59b21791739016e07ee7032305e22.tar.bz2 blogs-7dc5f7acdcb59b21791739016e07ee7032305e22.zip | |
synch recent changes from R1 to HEAD
Diffstat (limited to 'view_post.php')
| -rw-r--r-- | view_post.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/view_post.php b/view_post.php index 81d5423..5bb4419 100644 --- a/view_post.php +++ b/view_post.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_blogs/view_post.php,v 1.5 2005/08/11 13:03:44 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_blogs/view_post.php,v 1.6 2005/08/24 20:49:32 squareing Exp $ * @package blogs * @subpackage functions @@ -21,16 +21,10 @@ if ( empty( $_REQUEST["post_id"] ) && empty( $_REQUEST["content_id"] ) ) { } global $gContent; -$postId = !empty( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL; -$conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL; -$gContent = new BitBlogPost( $postId, $conId ); -if( $gContent->load() ) { - // get the pigeonholes info - if( $gBitSystem->isPackageActive( 'pigeonholes' ) ) { - include_once( PIGEONHOLES_PKG_PATH.'get_pigeonholes_info_inc.php' ); - } +require_once( BLOGS_PKG_PATH.'lookup_post_inc.php' ); +if( $gContent->load() ) { include_once( BLOGS_PKG_PATH.'display_bitblogpost_inc.php' ); } else { $gBitSystem->fatalError( 'Post could not be found.' ); |
