diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-01-24 10:21:23 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-01-24 10:21:23 +0000 |
| commit | df41f493d0bf27dc491e5567fdbd21cdcc5530fb (patch) | |
| tree | bffc916955c4a18cd0e1e336acc31eef2ee229d0 /view.php | |
| parent | ce679c371160e03bf1928924014f64bbe80b3851 (diff) | |
| download | pigeonholes-df41f493d0bf27dc491e5567fdbd21cdcc5530fb.tar.gz pigeonholes-df41f493d0bf27dc491e5567fdbd21cdcc5530fb.tar.bz2 pigeonholes-df41f493d0bf27dc491e5567fdbd21cdcc5530fb.zip | |
rename $gPigeonholes to $gContent since we're dealing with LibertyContent
fix some minor layout issues and add some basic prefs to schema_inc
add option to not show any category members, but only category name - can act as tagging system that way
Diffstat (limited to 'view.php')
| -rw-r--r-- | view.php | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_pigeonholes/view.php,v 1.5 2006/01/18 14:29:34 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_pigeonholes/view.php,v 1.6 2006/01/24 10:21:23 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.5 2006/01/18 14:29:34 squareing Exp $ + * $Id: view.php,v 1.6 2006/01/24 10:21:23 squareing Exp $ * @package pigeonholes * @subpackage functions */ @@ -25,12 +25,12 @@ include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' ); // set up structure related stuff global $gStructure; -$gStructure = new LibertyStructure( $gPigeonholes->mInfo['root_structure_id'] ); +$gStructure = new LibertyStructure( $gContent->mInfo['root_structure_id'] ); $gStructure->load(); if( !empty( $_REQUEST['action'] ) ) { if( $_REQUEST['action'] == 'dismember' && !empty( $_REQUEST['content_id'] ) && !empty( $_REQUEST['parent_id'] ) && $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' ) ) { - if( $gPigeonholes->expungePigeonholeMember( $_REQUEST['content_id'], $_REQUEST['parent_id'] ) ) { + if( $gContent->expungePigeonholeMember( $_REQUEST['content_id'], $_REQUEST['parent_id'] ) ) { $feedback['success'] = tra( 'The item was successfully removed' ); } else { $feedback['error'] = tra( 'The item could not be removed' ); @@ -48,14 +48,14 @@ $gBitSmarty->assign( 'structureInfo', $gStructure->mInfo ); $gBitSmarty->assign( 'subtree', $gStructure->getSubTree( $gStructure->mStructureId ) ); $listHash = array( - 'root_structure_id' => $gPigeonholes->mInfo['root_structure_id'], - 'structure_id' => $gPigeonholes->mInfo['structure_id'], + 'root_structure_id' => $gContent->mInfo['root_structure_id'], + 'structure_id' => $gContent->mInfo['structure_id'], 'load_extras' => TRUE ); -$pigeonList = $gPigeonholes->getList( $listHash ); +$pigeonList = $gContent->getList( $listHash ); $gBitSmarty->assign( 'pigeonList', $pigeonList ); -$gBitSmarty->assign( 'list_style', $gBitSystem->getPreference( 'pigeonholes_list_style', 'dynamic' ) ); +$gContent->addHit(); // Display the template $gBitSystem->display( 'bitpackage:pigeonholes/view_structure.tpl', tra( 'View Pigeonhole' ) ); ?> |
