summaryrefslogtreecommitdiff
path: root/send_post.php
diff options
context:
space:
mode:
Diffstat (limited to 'send_post.php')
-rwxr-xr-xsend_post.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/send_post.php b/send_post.php
index 8b64c24..8c5f525 100755
--- a/send_post.php
+++ b/send_post.php
@@ -1,4 +1,6 @@
<?php
+
+use Bitweaver\KernelTools;
/**
* @version $Header$
@@ -23,7 +25,7 @@ include_once BLOGS_PKG_CLASS_PATH.'BitBlogPost.php';
$gBitSystem->verifyPermission( 'p_blogs_send_post' );
if (!isset($_REQUEST["post_id"])) {
- $gBitSystem->fatalError( tra( 'No post indicated' ));
+ $gBitSystem->fatalError( KernelTools::tra( 'No post indicated' ));
}
include_once BLOGS_PKG_INCLUDE_PATH.'lookup_post_inc.php';
@@ -34,20 +36,20 @@ $gBitSmarty->assign('post_info', $gContent->mInfo );
//Build absolute URI for this
$parts = parse_url($_SERVER['REQUEST_URI']);
-$uri = httpPrefix(). $parts['path'] . '?post_id=' . $gContent->mInfo['post_id'];
-$uri2 = httpPrefix(). $parts['path'] . '/' . $gContent->mInfo['post_id'];
+$uri = KernelTools::httpPrefix(). $parts['path'] . '?post_id=' . $gContent->mInfo['post_id'];
+$uri2 = KernelTools::httpPrefix(). $parts['path'] . '/' . $gContent->mInfo['post_id'];
$gBitSmarty->assign('uri', $uri);
$gBitSmarty->assign('uri2', $uri2);
$gBitSmarty->assign( 'parsed_data', $gContent->getParsedData() );
if ($gBitSystem->isFeatureActive( 'blog_posts_comments' )) {
- $comments_vars = array(
+ $comments_vars = [
'post_id',
'offset',
'find',
- 'sort_mode'
- );
+ 'sort_mode',
+ ];
$comments_return_url = $_SERVER['SCRIPT_NAME']."?post_id=".$gContent->mPostId;
$commentsParentId = $gContent->mContentId;
@@ -76,7 +78,7 @@ if (isset($_REQUEST['send'])) {
$gBitSmarty->assign('mail_title', $gContent->mInfo['title'] ? $gContent->mInfo['title'] : date("d/m/Y [h:i]", $gContent->mInfo['created']));
$gBitSmarty->assign('mail_machine', $machine);
$mail_data = $gBitSmarty->fetch('bitpackage:blogs/blogs_send_link.tpl');
- @mail($email, tra('Post recommendation at'). ' ' . $_SERVER["SERVER_NAME"], $mail_data,
+ @mail($email, KernelTools::tra('Post recommendation at'). ' ' . $_SERVER["SERVER_NAME"], $mail_data,
"From: ".$gBitSystem->getConfig( 'site_sender_email' )."\r\nContent-type: text/plain;charset=utf-8\r\n");
}