summaryrefslogtreecommitdiff
path: root/smartyplugins
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-16 13:39:56 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-16 13:39:56 +0100
commit9a6b8f5562e0c59587a7e283733ccb2a94b1706b (patch)
treebb81cd05bf82db9db1f4fe71da362584607707d6 /smartyplugins
parent80975a340c65e7fc02c7c7bcf23623abf6d9bcef (diff)
downloadthemes-9a6b8f5562e0c59587a7e283733ccb2a94b1706b.tar.gz
themes-9a6b8f5562e0c59587a7e283733ccb2a94b1706b.tar.bz2
themes-9a6b8f5562e0c59587a7e283733ccb2a94b1706b.zip
Tidy namespace errors
Diffstat (limited to 'smartyplugins')
-rwxr-xr-xsmartyplugins/BlockForm.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/smartyplugins/BlockForm.php b/smartyplugins/BlockForm.php
index ade37e7..01676eb 100755
--- a/smartyplugins/BlockForm.php
+++ b/smartyplugins/BlockForm.php
@@ -29,7 +29,7 @@ use Smarty\Template;
class BlockForm implements BlockHandlerInterface {
public function handle( $pParams, $pContent, Template $template, &$repeat): string {
- global $gBitSystem, $gSniffer;
+ global $gBitSystem, $gBitUser, $gSniffer;
if( !empty($pContent) ) {
if ( $template ) {
@@ -100,7 +100,10 @@ class BlockForm implements BlockHandlerInterface {
$onsub = !empty( $onsubmit ) ? " onsubmit=\"$onsubmit\"" : '';
$ret = '<form action="'.$url.( !empty( $pParams['ianchor'] ) ? '#'.$pParams['ianchor'] : '' ).'" '.$atts.$onsub.'>';
- $ret .= isset( $legend ) ? "<fieldset>$legend" : ''; // adding the div makes it easier to be xhtml compliant
+ $ret .= isset( $legend ) ? "<fieldset>$legend" : '';
+ if( is_object( $gBitUser ) && $gBitUser->isRegistered() ) {
+ $ret .= '<input type="hidden" name="tk" value="'.$gBitUser->mTicket.'" />';
+ }
$ret .= $pContent;
$ret .= isset( $legend ) ? '</fieldset>' : ''; // close the open tags
$ret .= '</form>';