summaryrefslogtreecommitdiff
path: root/lookup_post_inc.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 03:57:42 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 03:57:42 +0000
commit48f33945f41e0b30628d8d7941fe8d62e88ac97b (patch)
tree5d624eda3cf1bd0cdc9e788fbbba5c70a3ddb0e4 /lookup_post_inc.php
downloadblogs-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.php11
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 );
+ }
+?>