summaryrefslogtreecommitdiff
path: root/lookup_post_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-24 20:49:32 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-24 20:49:32 +0000
commit7dc5f7acdcb59b21791739016e07ee7032305e22 (patch)
tree2e4fda6b2fbec7fb28ada1837cb927d68fc21989 /lookup_post_inc.php
parentb8ff879105513e1c8b702e2dd8a666d767778d97 (diff)
downloadblogs-7dc5f7acdcb59b21791739016e07ee7032305e22.tar.gz
blogs-7dc5f7acdcb59b21791739016e07ee7032305e22.tar.bz2
blogs-7dc5f7acdcb59b21791739016e07ee7032305e22.zip
synch recent changes from R1 to HEAD
Diffstat (limited to 'lookup_post_inc.php')
-rw-r--r--lookup_post_inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lookup_post_inc.php b/lookup_post_inc.php
index dabb050..9aed005 100644
--- a/lookup_post_inc.php
+++ b/lookup_post_inc.php
@@ -7,8 +7,9 @@
global $gContent, $gBitSmarty;
if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) {
- $postId = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL;
- $gContent = new BitBlogPost( $postId );
+ $postId = !empty( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL;
+ $conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL;
+ $gContent = new BitBlogPost( $postId, $conId );
$gContent->load();
$comments_return_url = $_SERVER['PHP_SELF']."?post_id=$postId";
$gBitSmarty->assign_by_ref( 'gContent', $gContent );