diff options
| author | lsces <lester@lsces.co.uk> | 2026-02-01 17:57:53 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-02-01 17:57:53 +0000 |
| commit | 0b7bc39d45c39f36e13e704ac126f9246a9be62f (patch) | |
| tree | bed4210bdc7e2c43716ca3d42a44e9cbbc58780d /admin/admin_topics.php | |
| parent | e75480ed0929f12c69465d63aba1615db7b9436a (diff) | |
| download | articles-0b7bc39d45c39f36e13e704ac126f9246a9be62f.tar.gz articles-0b7bc39d45c39f36e13e704ac126f9246a9be62f.tar.bz2 articles-0b7bc39d45c39f36e13e704ac126f9246a9be62f.zip | |
Major refactor for namespace, php8.4 and smarty5
Diffstat (limited to 'admin/admin_topics.php')
| -rwxr-xr-x[-rw-r--r--] | admin/admin_topics.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/admin_topics.php b/admin/admin_topics.php index 854c2dd..45ee77c 100644..100755 --- a/admin/admin_topics.php +++ b/admin/admin_topics.php @@ -1,8 +1,10 @@ <?php + // $Header$ require_once '../../kernel/includes/setup_inc.php'; +use Bitweaver\Articles\BitArticleTopic; +use Bitweaver\KernelTools; -include_once( ARTICLES_PKG_CLASS_PATH.'BitArticle.php' ); include_once( ARTICLES_PKG_INCLUDE_PATH.'lookup_article_topic_inc.php' ); // Is package installed and enabled @@ -12,7 +14,7 @@ $gBitSystem->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' ]); |
