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 | 72119ef864e1a5ffa377a504dc2ef430d7e6cd4a (patch) | |
| tree | 24a4b9539cf4f4b8116bd38d3444001843cb8e45 /edit.php | |
| parent | 72312119fe678d14b61e3c508db98a6dd0ee4ec0 (diff) | |
| download | contact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.tar.gz contact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.tar.bz2 contact-72119ef864e1a5ffa377a504dc2ef430d7e6cd4a.zip | |
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit.php')
| -rwxr-xr-x | edit.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ if (isset( $_REQUEST["preview"] )) { $gBitSmarty->assign( 'title', $_REQUEST["title"] ); $parsed = $gContent->parseData( $formInfo['edit'], !empty( $_REQUEST['format_guid'] ) ? $_REQUEST['format_guid'] : - ( isset( $gContent->mInfo['format_guid'] ) ? $gContent->mInfo['format_guid'] : 'tikiwiki' ) ); + ( $gContent->mInfo['format_guid'] ?? 'tikiwiki' ), ); $gBitSmarty->assign('parsed', $parsed); $gContent->invokeServices( 'content_preview_function' ); } else { @@ -62,7 +62,7 @@ if (isset($_REQUEST["fCancel"])) { $formInfo = $_REQUEST; $formInfo['data'] = &$_REQUEST['edit']; } -} +} // formInfo might be set due to a error on submit if( empty( $formInfo ) ) { @@ -76,4 +76,4 @@ $gBitSmarty->assign( 'errors', $gContent->mErrors ); $gBitSmarty->assign( (!empty( $_REQUEST['tab'] ) ? $_REQUEST['tab'] : 'body').'TabSelect', 'tdefault' ); $gBitSmarty->assign('show_page_bar', 'y'); -$gBitSystem->display( 'bitpackage:contact/edit.tpl', 'Edit: ' , array( 'display_mode' => 'edit' )); +$gBitSystem->display( 'bitpackage:contact/edit.tpl', 'Edit: ' , [ 'display_mode' => 'edit' ]); |
