diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 03:57:42 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2005-06-19 03:57:42 +0000 |
| commit | 48f33945f41e0b30628d8d7941fe8d62e88ac97b (patch) | |
| tree | 5d624eda3cf1bd0cdc9e788fbbba5c70a3ddb0e4 /lookup_post_inc.php | |
| download | blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.gz blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.tar.bz2 blogs-48f33945f41e0b30628d8d7941fe8d62e88ac97b.zip | |
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'lookup_post_inc.php')
| -rw-r--r-- | lookup_post_inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lookup_post_inc.php b/lookup_post_inc.php new file mode 100644 index 0000000..2db4d96 --- /dev/null +++ b/lookup_post_inc.php @@ -0,0 +1,11 @@ +<?php + global $gContent, $smarty; + + if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) { + $postId = isset( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : NULL; + $gContent = new BitBlogPost( $postId ); + $gContent->load(); + $comments_return_url = $_SERVER['PHP_SELF']."?post_id=$postId"; + $smarty->assign_by_ref( 'gContent', $gContent ); + } +?> |
