diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-27 14:29:49 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-27 14:29:49 +0000 |
| commit | 07c5b75e3c0a2c3d8156e98cf3a112537586c084 (patch) | |
| tree | 5b9851dbefb27814491d84d3c5c65bcd43bf6c49 /send_post.php | |
| parent | 97695963c23046019df0b18a3569bd254466a4c3 (diff) | |
| download | blogs-07c5b75e3c0a2c3d8156e98cf3a112537586c084.tar.gz blogs-07c5b75e3c0a2c3d8156e98cf3a112537586c084.tar.bz2 blogs-07c5b75e3c0a2c3d8156e98cf3a112537586c084.zip | |
Namespace additions
Diffstat (limited to 'send_post.php')
| -rwxr-xr-x | send_post.php | 16 |
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"); } |
