diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:49:08 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:49:08 +0100 |
| commit | ef793a806a8d5a479c29c061780c56f62c4d3535 (patch) | |
| tree | dabe63be7a0cf383196bccfeb8743310e1d28fba /mailing_list.php | |
| parent | 39508ee5ad8908fa720db48fcf7923f309fdce9d (diff) | |
| download | boards-ef793a806a8d5a479c29c061780c56f62c4d3535.tar.gz boards-ef793a806a8d5a479c29c061780c56f62c4d3535.tar.bz2 boards-ef793a806a8d5a479c29c061780c56f62c4d3535.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'mailing_list.php')
| -rwxr-xr-x | mailing_list.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mailing_list.php b/mailing_list.php index 4f2e0c4..c37da31 100755 --- a/mailing_list.php +++ b/mailing_list.php @@ -36,7 +36,7 @@ if( $boardSyncInbox = BitBoard::getBoardSyncInbox() ) { if( !empty( $_REQUEST['create_list'] ) ) { //------ Email List ------// - if( !($error = mailman_newlist( array( 'listname' => $_REQUEST['boards_mailing_list'], 'admin-password'=>$_REQUEST['boards_mailing_list_password'], 'listadmin-addr'=>$gBitUser->getField( 'email' ) ) )) ) { + if( !($error = mailman_newlist( [ 'listname' => $_REQUEST['boards_mailing_list'], 'admin-password'=>$_REQUEST['boards_mailing_list_password'], 'listadmin-addr'=>$gBitUser->getField( 'email' ) ] )) ) { $gContent->storePreference( 'boards_mailing_list', !empty( $_REQUEST['boards_mailing_list'] ) ? $_REQUEST['boards_mailing_list'] : null ); $gContent->storePreference( 'boards_mailing_list_password', $_REQUEST['boards_mailing_list_password'] ); } else { @@ -54,10 +54,10 @@ if( !empty( $_REQUEST['create_list'] ) ) { $formHash['delete_list'] = true; $formHash['b'] = $gContent->getField( 'board_id' ); $gBitSystem->confirmDialog( $formHash, - array( + [ 'warning' => tra('Are you sure you want to delete this mailing list?') . ' ' . $gContent->getTitle(), 'error' => tra('This cannot be undone!'), - ) + ], ); } else { if( !($error = mailman_rmlist( $gContent->getPreference( 'boards_mailing_list' ) )) ) { @@ -75,7 +75,7 @@ if( !empty( $_REQUEST['create_list'] ) ) { // check for submits that need boards_mailing_list if( !empty( $_REQUEST['subscribe_boardsync'] ) ) { if( $gContent->getPreference('board_sync_list_address') ) { - mailman_addmember( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox ); + mailman_addmember( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox ); mailman_setmoderator( $gContent->getPreference( 'boards_mailing_list' ), $boardSyncInbox ); } } elseif( !empty( $_REQUEST['unsubscribe_boardsync'] ) ) { @@ -101,5 +101,5 @@ if( $gContent->getBoardMailingList() ) { // display $gBitSmarty->assign( 'board', $gContent ); -$gBitSystem->display( "bitpackage:boards/mailing_list.tpl", $gContent->getTitle() ." ". tra( 'Message Board Mailing List' ) , array( 'display_mode' => 'list' )); +$gBitSystem->display( "bitpackage:boards/mailing_list.tpl", $gContent->getTitle() ." ". tra( 'Message Board Mailing List' ) , [ 'display_mode' => 'list' ]); ?> |
