summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-26 16:33:46 +0000
committerlsces <lester@lsces.co.uk>2026-03-26 16:33:46 +0000
commitc55dd36bb7020d57665578e2c2bdf619cb0d0e9b (patch)
treef8a018cfd91c73d5fe9f52802a74233d8789e41d
parentf0e03115d345cf3497ae2804d09037bcf9f32aff (diff)
downloadarticles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.tar.gz
articles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.tar.bz2
articles-c55dd36bb7020d57665578e2c2bdf619cb0d0e9b.zip
Short array format
-rwxr-xr-xedit_topic.php10
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' ]);