summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:51:41 +0100
commit72119ef864e1a5ffa377a504dc2ef430d7e6cd4a (patch)
tree24a4b9539cf4f4b8116bd38d3444001843cb8e45 /edit.php
parent72312119fe678d14b61e3c508db98a6dd0ee4ec0 (diff)
downloadcontact-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-xedit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/edit.php b/edit.php
index f6d2d92..44eea46 100755
--- a/edit.php
+++ b/edit.php
@@ -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' ]);