summaryrefslogtreecommitdiff
path: root/send_post.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-03-26 18:14:14 +0000
committerwjames5 <will@tekimaki.com>2007-03-26 18:14:14 +0000
commit806b476e2de4df99eb083828b4b1e69d30dfaf74 (patch)
treeaff8fe58805df95ce5c6dea6c07c4b40eab24cd9 /send_post.php
parent7eb9d02eb1c0b4fabf479b0f4d85c802fd414459 (diff)
downloadblogs-806b476e2de4df99eb083828b4b1e69d30dfaf74.tar.gz
blogs-806b476e2de4df99eb083828b4b1e69d30dfaf74.tar.bz2
blogs-806b476e2de4df99eb083828b4b1e69d30dfaf74.zip
fix email psot error tied to blog_id
Diffstat (limited to 'send_post.php')
-rw-r--r--send_post.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/send_post.php b/send_post.php
index 9477c6d..c1aeb53 100644
--- a/send_post.php
+++ b/send_post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/send_post.php,v 1.17 2007/03/23 21:29:26 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/send_post.php,v 1.18 2007/03/26 18:14:14 wjames5 Exp $
* @package blogs
* @subpackage functions
@@ -15,7 +15,9 @@
*/
require_once( '../bit_setup_inc.php' );
-include_once( BLOGS_PKG_PATH.'BitBlog.php' );
+//DEPRICATED - we do everything by post id without blog reference now -wjames5
+//include_once( BLOGS_PKG_PATH.'BitBlog.php' );
+include_once( BLOGS_PKG_PATH.'BitBlogPost.php' );
$gBitSystem->verifyPermission( 'p_blogs_send_post' );
@@ -31,8 +33,12 @@ $gBitSmarty->assign('post_info', $gContent->mInfo );
//Build absolute URI for this
$parts = parse_url($_SERVER['REQUEST_URI']);
+/*OLD with blog_id - might later want to reincorporate blog_id but will have to start in the view_blog_post.tpl -wjames5
$uri = httpPrefix(). $parts['path'] . '?blog_id=' . $gContent->mInfo['blog_id'] . '&post_id=' . $gContent->mInfo['post_id'];
$uri2 = httpPrefix(). $parts['path'] . '/' . $gContent->mInfo['blog_id'] . '/' . $gContent->mInfo['post_id'];
+*/
+$uri = httpPrefix(). $parts['path'] . '?post_id=' . $gContent->mInfo['post_id'];
+$uri2 = httpPrefix(). $parts['path'] . '/' . $gContent->mInfo['post_id'];
$gBitSmarty->assign('uri', $uri);
$gBitSmarty->assign('uri2', $uri2);