From c55dd36bb7020d57665578e2c2bdf619cb0d0e9b Mon Sep 17 00:00:00 2001 From: lsces Date: Thu, 26 Mar 2026 16:33:46 +0000 Subject: Short array format --- edit_topic.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit_topic.php b/edit_topic.php index 33e9698..c1c1d36 100755 --- a/edit_topic.php +++ b/edit_topic.php @@ -14,14 +14,14 @@ use Bitweaver\Articles\BitArticle; include_once( ARTICLES_PKG_INCLUDE_PATH.'lookup_article_topic_inc.php' ); if ( !$gBitSystem->verifyPackage( 'articles' ) ) { - $gBitSmarty->assign( 'msg', tra( "This package is disabled" ) . ": Articles" ); - $gBitSystem->display( "error.tpl" , NULL, array( 'display_mode' => 'edit' )); + $gBitSmarty->assign( 'msg', KernelTools::tra( "This package is disabled" ) . ": Articles" ); + $gBitSystem->display( "error.tpl" , NULL, [ 'display_mode' => 'edit' ]); die; } if( !$gContent->isValid() ) { - $gBitSmarty->assign( 'msg', tra("Article topic not found") ); - $gBitSystem->display('error.tpl', NULL, array( 'display_mode' => 'edit' )); + $gBitSmarty->assign( 'msg', KernelTools::tra("Article topic not found") ); + $gBitSystem->display('error.tpl', NULL, [ 'display_mode' => 'edit' ]); die; } @@ -35,4 +35,4 @@ if( isset( $_REQUEST["fSubmitSaveTopic"] ) ) { $gContent->removeTopicImage(); } -$gBitSystem->display( 'bitpackage:articles/edit_topic.tpl' , NULL, array( 'display_mode' => 'edit' )); +$gBitSystem->display( 'bitpackage:articles/edit_topic.tpl' , NULL, [ 'display_mode' => 'edit' ]); -- cgit v1.3