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 /includes/lookup_page_inc.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 'includes/lookup_page_inc.php')
| -rwxr-xr-x | includes/lookup_page_inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/lookup_page_inc.php b/includes/lookup_page_inc.php index 4d838b1..b28a1d7 100755 --- a/includes/lookup_page_inc.php +++ b/includes/lookup_page_inc.php @@ -14,6 +14,7 @@ * required setup */ namespace Bitweaver\Wiki; + use Bitweaver\Liberty\LibertyStructure; global $gContent; include_once LIBERTY_PKG_INCLUDE_PATH.'lookup_content_inc.php'; @@ -24,7 +25,7 @@ if( empty( $lookupHash )) { } // if we already have a gContent, we assume someone else created it for us, and has properly loaded everything up. -if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gContent ) ) != 'bitpage' ) { +if( empty( $gContent ) || !is_object( $gContent ) || strtolower( $gContent::class ) != 'bitpage' ) { if( !empty( $lookupHash['page_id'] ) ) { $loadContentId = BitPage::findContentIdByPageId( $lookupHash['page_id'] ); } elseif( !empty( $lookupHash['content_id'] ) ) { @@ -48,10 +49,10 @@ if( empty( $gContent ) || !is_object( $gContent ) || strtolower( get_class( $gCo $gBitSmarty->assign('dupePages', $existsInfo); $gBitSystem->display('bitpackage:wiki/page_select.tpl', null, [ 'display_mode' => 'display' ]); die; - } else { + } $loadPageId = $existsInfo[0]['page_id']; $loadContentId = $existsInfo[0]['content_id']; - } + } } elseif( $loadPage ) { $gBitSmarty->assign('page', $loadPage);//to have the create page link in the error |
