summaryrefslogtreecommitdiff
path: root/edit_book.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:55:19 +0100
commitc105a9834fd9c5a320d41422c50fa84e5bc12084 (patch)
tree48d0d400d6e0a4fd87485e89accfdeaf8db5c24b /edit_book.php
parent1778d95793e4bc5d494ece84ec177b5629c830f3 (diff)
downloadwiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.tar.gz
wiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.tar.bz2
wiki-c105a9834fd9c5a320d41422c50fa84e5bc12084.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit_book.php')
-rwxr-xr-xedit_book.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/edit_book.php b/edit_book.php
index 8971c58..813a716 100755
--- a/edit_book.php
+++ b/edit_book.php
@@ -43,7 +43,7 @@ if( BitBase::verifyId( $_REQUEST["structure_id"] ) || BitBase::verifyId( $_REQUE
$newStructure = new LibertyStructure();
// alias => '' is a temporary setting until alias stuff has been removed
if( !$node = $newStructure->getNode( -2, $gContent->mContentId ) ) {
- $structureHash = array( 'content_id' => $gContent->mContentId, 'alias' => '' );
+ $structureHash = [ 'content_id' => $gContent->mContentId, 'alias' => '' ];
$_REQUEST["structure_id"] = $newStructure->storeNode( $structureHash );
} else {
$_REQUEST["structure_id"] = $node['structure_id'];
@@ -72,7 +72,7 @@ if( $gContent->isValid() ){
if( isset($_REQUEST["createstructure"]) ) {
if ((empty($_REQUEST['name']))) {
$gBitSmarty->assign('msg', KernelTools::tra( "You must specify a name."));
- $gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
+ $gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'edit' ]);
die;
}
@@ -91,12 +91,12 @@ if( isset($_REQUEST["createstructure"]) ) {
if( $gContent->isValid() ) {
$gStructure = new LibertyStructure();
// alias => '' is a temporary setting until alias stuff has been removed
- $structureHash = array( 'content_id' => $gContent->mContentId, 'alias' => '' );
+ $structureHash = [ 'content_id' => $gContent->mContentId, 'alias' => '' ];
$structure_id = $gStructure->storeNode( $structureHash );
//Cannot create a structure if a structure already exists
if (!isset($structure_id)) {
$gBitSmarty->assign('msg', $_REQUEST['name'] . " " . KernelTools::tra( "page not added (Exists)"));
- $gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
+ $gBitSystem->display( 'error.tpl' , null, [ 'display_mode' => 'edit' ]);
die;
}
@@ -152,4 +152,4 @@ if( isset($_REQUEST["createstructure"]) ) {
}
$gBitSystem->setBrowserTitle( !empty($gStructure) && $gStructure->isValid() ? 'Edit Wiki Book:'.$gStructure->getField( 'title' ) : null );
// Display the template
-$gBitSystem->display( $mid , null, array( 'display_mode' => 'edit' )); \ No newline at end of file
+$gBitSystem->display( $mid , null, [ 'display_mode' => 'edit' ]); \ No newline at end of file