summaryrefslogtreecommitdiff
path: root/lookup_blog_inc.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-21 17:29:31 +0000
committerwjames5 <will@tekimaki.com>2007-03-21 17:29:31 +0000
commit059a28f426369e22799aeb870151eb37badf2d15 (patch)
tree70e6286fbb0c7300ef059fd80aeff6fe2796e8b3 /lookup_blog_inc.php
parent27dfde20e1455e3eb24f11213c9642c41905324e (diff)
downloadblogs-059a28f426369e22799aeb870151eb37badf2d15.tar.gz
blogs-059a28f426369e22799aeb870151eb37badf2d15.tar.bz2
blogs-059a28f426369e22799aeb870151eb37badf2d15.zip
remove from blog creation, posting, display, may still be some refs in ranking and print
Diffstat (limited to 'lookup_blog_inc.php')
-rw-r--r--lookup_blog_inc.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/lookup_blog_inc.php b/lookup_blog_inc.php
index a2aa95d..b9ef3a0 100644
--- a/lookup_blog_inc.php
+++ b/lookup_blog_inc.php
@@ -7,22 +7,23 @@
/**
* required setup
*/
-global $gContent, $gBitSmarty, $gBlog;
-require_once( BLOGS_PKG_PATH.'BitBlog.php');
+global $gContent;
+require_once( BLOGS_PKG_PATH.'BitBlog.php' );
+require_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' );
// if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up.
-if( empty( $gBlog ) || !is_object( $gBlog ) || !$gBlog->isValid() ) {
+if( empty( $gContent ) || !is_object( $gContent ) || !$gContent->isValid() ) {
// if blog_id supplied, use that
if( @BitBase::verifyId( $_REQUEST['blog_id'] ) ) {
- $gBlog = new BitBlog( $_REQUEST['blog_id'] );
- $gBlog->load();
+ $gContent = new BitBlog( $_REQUEST['blog_id'] );
+ $gContent->load();
} elseif( @BitBase::verifyId( $_REQUEST['content_id'] ) ) {
- $gBlog = new BitBlog( NULL, $_REQUEST['content_id'] );
- $gBlog->load();
+ $gContent = new BitBlog( NULL, $_REQUEST['content_id'] );
+ $gContent->load();
} else {
- $gBlog = new BitBlog();
+ $gContent = new BitBlog();
}
- $gBitSmarty->assign_by_ref( "gBlog", $gBlog );
- }
+ $gBitSmarty->assign_by_ref( 'gContent', $gContent );
+}
?>