summaryrefslogtreecommitdiff
path: root/edit_topic.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-09 20:23:02 +0000
committerlsces <lester@lsces.co.uk>2026-03-09 20:23:02 +0000
commit27b224f36d0587e79447fce1e5cb62161005e616 (patch)
tree065d8d1767672ad08cd3e3a3197e6630769b6f6b /edit_topic.php
parent23dd61e8cabda4b922e2ef28ad6a52db847f2cf0 (diff)
downloadboards-27b224f36d0587e79447fce1e5cb62161005e616.tar.gz
boards-27b224f36d0587e79447fce1e5cb62161005e616.tar.bz2
boards-27b224f36d0587e79447fce1e5cb62161005e616.zip
As with articles, boards has had a blanket Smarty5 and PHP8.4 sweep of the code, but as yet this has not been tested. VSCode is currently saying the files are now clean.
Diffstat (limited to 'edit_topic.php')
-rwxr-xr-x[-rw-r--r--]edit_topic.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/edit_topic.php b/edit_topic.php
index 38c31b0..47f448e 100644..100755
--- a/edit_topic.php
+++ b/edit_topic.php
@@ -11,7 +11,8 @@
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
+use \Bitweaver\Boards\BitBoard;
+require_once '../kernel/includes/setup_inc.php';
// Is package installed and enabled
$gBitSystem->verifyPackage( 'boards' );
@@ -54,7 +55,7 @@ if( isset($_REQUEST['is_locked']) || isset($_REQUEST['is_sticky']) ){
if( !empty( $_REQUEST['cancel'] ) ) {
// user cancelled - just continue on, doing nothing
} elseif( empty( $_REQUEST['confirm'] ) ) {
- $formHash['remove'] = TRUE;
+ $formHash['remove'] = true;
$formHash['t'] = $_REQUEST['t'];
$gBitSystem->confirmDialog( $formHash,
array(
@@ -66,7 +67,7 @@ if( isset($_REQUEST['is_locked']) || isset($_REQUEST['is_sticky']) ){
// @TODO Topic should extend LibertyComment - but until that day we load it up a second time
$topicAsComment = new LibertyComment( $_REQUEST['t'] );
if( !$topicAsComment->expunge() ) {
- $gBitSmarty->assignByRef( 'errors', $topicAsComment->mErrors );
+ $gBitSmarty->assign( 'errors', $topicAsComment->mErrors );
}
// send us back to the baord - http_referer won't work with confirm process
bit_redirect( BOARDS_PKG_URL.'index.php?b='. $gContent->mInfo['board_id'] );