diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
| commit | 0bb2516c7143125e58e21295fd47b2064d31bb64 (patch) | |
| tree | 87c91837fb135abcde08598d46c679c7801bac1d /ajax_comments.php | |
| parent | ca5bc9374b72dc41758b34a88591af3881269b97 (diff) | |
| download | liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.gz liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.bz2 liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.zip | |
Namespace changes
Diffstat (limited to 'ajax_comments.php')
| -rwxr-xr-x | ajax_comments.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ajax_comments.php b/ajax_comments.php index 4b34a92..e1fb2b1 100755 --- a/ajax_comments.php +++ b/ajax_comments.php @@ -9,6 +9,7 @@ * required setup */ namespace Smarty; +use Bitweaver\KernelTools; use Bitweaver\Liberty\LibertyBase; use Bitweaver\Liberty\LibertyContent; require_once '../kernel/includes/setup_inc.php'; @@ -19,7 +20,7 @@ $XMLContent = ""; if( !$gContent->hasUserPermission( 'p_liberty_post_comments', true, true)) { $statusCode = 401; - $XMLContent = tra( "You do not have the required permissions to post new comments" ); + $XMLContent = KernelTools::tra( "You do not have the required permissions to post new comments" ); } elseif( $gContent->isCommentable() ) { /** * If we are receiving ajax comments request make sure our results also @@ -52,12 +53,12 @@ if( !$gContent->hasUserPermission( 'p_liberty_post_comments', true, true)) { $gBitSmarty->assign( 'commentsParentId', $commentsParentId ); if( !empty( $formfeedback )){ $statusCode = 400; - $XMLContent = smarty_function_formfeedback( $formfeedback, $gBitSmarty ); + $XMLContent = \Smarty::smarty_function_formfeedback( $formfeedback, $gBitSmarty ); } $XMLContent .= $gBitSmarty->fetch( 'bitpackage:liberty/display_comment.tpl' ); } else { $statusCode = 405; - $XMLContent = tra( "Sorry, you can not post a comment here." ); + $XMLContent = KernelTools::tra( "Sorry, you can not post a comment here." ); } // We return XML with a status code |
