summaryrefslogtreecommitdiff
path: root/view.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2025-08-27 17:15:51 +0100
committerlsces <lester@lsces.co.uk>2025-08-27 17:15:51 +0100
commit49fd7246de6340f0d9b5358d0fbdd3d14f9c2664 (patch)
tree9c3bd7c2ffc68fbfb52707a2f024b4b243084e4f /view.php
parentb8fad2e75324458572d8a96fa7b119b5175fa6fe (diff)
downloadpigeonholes-49fd7246de6340f0d9b5358d0fbdd3d14f9c2664.tar.gz
pigeonholes-49fd7246de6340f0d9b5358d0fbdd3d14f9c2664.tar.bz2
pigeonholes-49fd7246de6340f0d9b5358d0fbdd3d14f9c2664.zip
Code updated to PHP8.4 and namespace
Diffstat (limited to 'view.php')
-rwxr-xr-x[-rw-r--r--]view.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/view.php b/view.php
index c7aabbd..2651575 100644..100755
--- a/view.php
+++ b/view.php
@@ -16,7 +16,7 @@
/**
* required setup
*/
-require_once( '../kernel/includes/setup_inc.php' );
+require_once '../kernel/includes/setup_inc.php';
$gBitSystem->verifyPackage( 'pigeonholes' );
$gBitSystem->verifyPermission( 'p_pigeonholes_view' );
@@ -28,11 +28,11 @@ if (isset($_REQUEST['structure_id'])) {
header("Location:".$gContent->getDisplayUrl());
}
-$gBitSmarty->assignByRef( 'memberFeedback', $memberFeedback = array() );
+$gBitSmarty->assign( 'memberFeedback', $memberFeedback = [] );
// set up structure related stuff
global $gStructure;
-if( !@BitBase::verifyId( $gContent->mInfo['root_structure_id'] ) ) {
+if( !BitBase::verifyId( $gContent->mInfo['root_structure_id'] ) ) {
header( "Location:".PIGEONHOLES_PKG_URL."list.php" );
}
@@ -55,7 +55,7 @@ if( empty( $gStructure ) || !$gStructure->isValid() ) {
$gBitSystem->fatalError( tra( 'Invalid structure' ));
}
-$gBitSmarty->assignByRef( 'gStructure', $gStructure );
+$gBitSmarty->assign( 'gStructure', $gStructure );
$gBitSmarty->assign( 'structureInfo', $gStructure->mInfo );
$gBitSmarty->assign( 'subtree', $gStructure->getSubTree( $gStructure->mStructureId ) );
@@ -63,9 +63,9 @@ if( $gContent->checkPathPermissions( $gContent->getField( 'path' ) ) ) {
$listHash = array(
'root_structure_id' => $gContent->mInfo['root_structure_id'],
'structure_id' => $gContent->mInfo['structure_id'],
- 'parse_data' => TRUE,
+ 'parse_data' => true,
'max_records' => -1,
- 'load_extras' => TRUE,
+ 'load_extras' => true,
'members_max_records' => -1,
);
$pigeonList = $gContent->getList( $listHash );