diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 16:33:46 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 16:33:46 +0000 |
| commit | c55dd36bb7020d57665578e2c2bdf619cb0d0e9b (patch) | |
| tree | f8a018cfd91c73d5fe9f52802a74233d8789e41d | |
| parent | f0e03115d345cf3497ae2804d09037bcf9f32aff (diff) | |
| download | articles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.tar.gz articles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.tar.bz2 articles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.zip | |
Short array format
| -rwxr-xr-x | edit_topic.php | 10 |
1 files 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' ]); |
