diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-06-18 07:43:06 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-06-18 07:43:06 +0000 |
| commit | 32ed2bae9bf9a967465f74e74ae3a0e83424af5b (patch) | |
| tree | 7f3226b3ce63ede58e9c7ae11e4c6a1a146ee6b6 /view.php | |
| parent | 3fd6188c47838fa1dfe5737b6aa24ccdbb89302a (diff) | |
| download | pigeonholes-32ed2bae9bf9a967465f74e74ae3a0e83424af5b.tar.gz pigeonholes-32ed2bae9bf9a967465f74e74ae3a0e83424af5b.tar.bz2 pigeonholes-32ed2bae9bf9a967465f74e74ae3a0e83424af5b.zip | |
display correct number of assignable elements and fix pagination related display limitation
Diffstat (limited to 'view.php')
| -rw-r--r-- | view.php | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_pigeonholes/view.php,v 1.13 2006/04/24 12:35:46 bitweaver Exp $ + * $Header: /cvsroot/bitweaver/_bit_pigeonholes/view.php,v 1.14 2006/06/18 07:43:06 squareing Exp $ * * Copyright ( c ) 2004 bitweaver.org * Copyright ( c ) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: view.php,v 1.13 2006/04/24 12:35:46 bitweaver Exp $ + * $Id: view.php,v 1.14 2006/06/18 07:43:06 squareing Exp $ * @package pigeonholes * @subpackage functions */ @@ -52,12 +52,14 @@ if( empty( $gStructure ) || !$gStructure->isValid() ) { $gBitSmarty->assign_by_ref( 'gStructure', $gStructure ); $gBitSmarty->assign( 'structureInfo', $gStructure->mInfo ); $gBitSmarty->assign( 'subtree', $gStructure->getSubTree( $gStructure->mStructureId ) ); -$listHash = array( - 'root_structure_id' => $gContent->mInfo['root_structure_id'], - 'structure_id' => $gContent->mInfo['structure_id'], - 'load_extras' => TRUE -); + if( $gContent->checkPathPermissions( $gContent->getField( 'path' ) ) ) { + $listHash = array( + 'root_structure_id' => $gContent->mInfo['root_structure_id'], + 'structure_id' => $gContent->mInfo['structure_id'], + 'load_extras' => TRUE, + 'max_records' => -1, + ); $pigeonList = $gContent->getList( $listHash ); $gBitSmarty->assign( 'pigeonList', $pigeonList ); } else { |
