diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:55:19 +0100 |
| commit | c105a9834fd9c5a320d41422c50fa84e5bc12084 (patch) | |
| tree | 48d0d400d6e0a4fd87485e89accfdeaf8db5c24b /index.php | |
| parent | 1778d95793e4bc5d494ece84ec177b5629c830f3 (diff) | |
| download | wiki-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 'index.php')
| -rwxr-xr-x | index.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,6 +14,7 @@ * required setup */ namespace Bitweaver\Wiki; + require_once '../kernel/includes/setup_inc.php'; $gBitSystem->verifyPackage( 'wiki' ); @@ -21,7 +22,7 @@ $gBitSystem->verifyPackage( 'wiki' ); if( !empty( $_REQUEST['structure_id'] ) ) { include LIBERTY_PKG_INCLUDE_PATH.'structure_display_inc.php'; } else { - // if no page set + // if no page set if ( !isset( $_REQUEST['page'] ) and !isset( $_REQUEST['page_id'] ) ) { // if auto create home page disabled just get a list if( $gBitSystem->isFeatureActive( 'wiki_disable_auto_home' ) ){ @@ -39,10 +40,10 @@ if( !empty( $_REQUEST['structure_id'] ) ) { 'title' => $wikiHome ?? 'HomePage', 'creator_user_id' => ROOT_USER_ID, 'modifier_user_id' => ROOT_USER_ID, - 'edit' => 'Welcome to '.( $gBitSystem->getConfig( 'site_title', 'our site' ) ) ]; + 'edit' => 'Welcome to '.( $gBitSystem->getConfig( 'site_title', 'our site' ) ), ]; $gHome->store( $homeHash ); } - + include WIKI_PKG_INCLUDE_PATH.'lookup_page_inc.php'; if( $gContent->isValid() ) { $gBitSystem->setCanonicalLink( $gContent->getDisplayUrl() ); |
