diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:51:41 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:51:41 +0100 |
| commit | b3ad3ad85eb5a910c191a3966e5c01f2fb88a4d3 (patch) | |
| tree | f4595f230baa2eaa7dff6f49c0d197b931fee673 /edition.php | |
| parent | 7a21da41db5ab3bdb5777b6ff501fc210fbb02ad (diff) | |
| download | newsletters-b3ad3ad85eb5a910c191a3966e5c01f2fb88a4d3.tar.gz newsletters-b3ad3ad85eb5a910c191a3966e5c01f2fb88a4d3.tar.bz2 newsletters-b3ad3ad85eb5a910c191a3966e5c01f2fb88a4d3.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edition.php')
| -rwxr-xr-x | edition.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/edition.php b/edition.php index b07c788..ade0c7c 100755 --- a/edition.php +++ b/edition.php @@ -19,7 +19,7 @@ $gBitSystem->verifyPackage( 'newsletters' ); require_once( NEWSLETTERS_PKG_INCLUDE_PATH.'lookup_newsletter_edition_inc.php' ); -$listHash = array(); +$listHash = []; $newsletters = $gContent->mNewsletter->getList( $listHash ); $gBitSmarty->assign( 'newsletters', $newsletters ); @@ -29,10 +29,10 @@ if (isset($_REQUEST["remove"] ) && $gContent->isValid() ) { } elseif( empty( $_REQUEST['confirm'] ) ) { $formHash['remove'] = TRUE; $formHash['edition_id'] = $gContent->mEditionId; - $gBitSystem->confirmDialog( $formHash, - array( - 'warning' => tra('Are you sure you want to delete this newsletter edition?'). ' ' . $gContent->getTitle() - ) + $gBitSystem->confirmDialog( $formHash, + [ + 'warning' => tra('Are you sure you want to delete this newsletter edition?'). ' ' . $gContent->getTitle(), + ], ); } else { if( $gContent->expunge() ) { @@ -46,7 +46,7 @@ if( $gContent->isValid() ) { $title = $gContent->mInfo['title']; $mid = 'bitpackage:newsletters/view_edition.tpl'; } else { - $listHash = array(); + $listHash = []; $editions = $gContent->getList( $listHash ); $gBitSmarty->assign( 'editionList', $editions ); $gBitSmarty->assign( 'listInfo', $listHash ); @@ -55,5 +55,5 @@ if( $gContent->isValid() ) { } // Display the template -$gBitSystem->display( $mid, $title , array( 'display_mode' => 'edit' )); +$gBitSystem->display( $mid, $title , [ 'display_mode' => 'edit' ]); |
