From 0b7bc39d45c39f36e13e704ac126f9246a9be62f Mon Sep 17 00:00:00 2001 From: lsces Date: Sun, 1 Feb 2026 17:57:53 +0000 Subject: Major refactor for namespace, php8.4 and smarty5 --- admin/admin_topics.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 admin/admin_topics.php (limited to 'admin/admin_topics.php') diff --git a/admin/admin_topics.php b/admin/admin_topics.php old mode 100644 new mode 100755 index 854c2dd..45ee77c --- a/admin/admin_topics.php +++ b/admin/admin_topics.php @@ -1,8 +1,10 @@ verifyPermission( 'p_articles_admin' ); if( isset( $_REQUEST["fSubmitAddTopic"] ) ) { $gContent->storeTopic( $_REQUEST ); if ( !empty( $gContent->mErrors ) ) { - $gBitSmarty->assignByRef('errors', $gContent->mErrors ); + $gBitSmarty->assign('errors', $gContent->mErrors ); } } elseif( !empty( $_REQUEST['fActivateTopic'] )&& $gContent ) { $gContent->activateTopic(); @@ -27,4 +29,4 @@ if( isset( $_REQUEST["fSubmitAddTopic"] ) ) { $topics = BitArticleTopic::getTopicList(); $gBitSmarty->assign( 'topics', $topics ); -$gBitSystem->display( 'bitpackage:articles/admin_topics.tpl', tra( 'Edit Topics' ) , array( 'display_mode' => 'admin' )); +$gBitSystem->display( 'bitpackage:articles/admin_topics.tpl', KernelTools::tra( 'Edit Topics' ) , [ 'display_mode' => 'admin' ]); -- cgit v1.3