diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-09-16 19:03:11 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-09-16 19:03:11 +0000 |
| commit | 2507808d9a42e5a9fda976428cd184be20a11571 (patch) | |
| tree | daba5220666684a09ff4b120c846682697e1a20c /bit_setup_inc.php | |
| parent | d96a07ae736c0da20550d7afdaad7672e9684a5c (diff) | |
| download | pigeonholes-2507808d9a42e5a9fda976428cd184be20a11571.tar.gz pigeonholes-2507808d9a42e5a9fda976428cd184be20a11571.tar.bz2 pigeonholes-2507808d9a42e5a9fda976428cd184be20a11571.zip | |
add pService parameter to registerPackage() to specify service package provides, if any
add getService() method to LibertySystem
make appropriate changes to bit_setup_inc.php
Diffstat (limited to 'bit_setup_inc.php')
| -rw-r--r-- | bit_setup_inc.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index bf4c0c2..901b040 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -1,16 +1,16 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package Pigeonholes * @subpackage functions */ global $gBitSystem, $gBitUser; -$gBitSystem->registerPackage( 'pigeonholes', dirname( __FILE__).'/' ); +$gBitSystem->registerPackage( 'pigeonholes', dirname( __FILE__).'/', TRUE, LIBERTY_SERVICE_CATEGORIZATION ); define( 'PIGEONHOLES_CONTENT_TYPE_GUID', 'pigeonholes' ); -if( !empty( $gLibertySystem ) ) { +if( $gBitSystem->isPackageActive( 'pigeonholes' ) ) { $gLibertySystem->registerService( LIBERTY_SERVICE_CATEGORIZATION, PIGEONHOLES_PKG_NAME, array( 'content_display_function' => 'display_pigeonholes', 'content_preview_function' => 'pigeonholes_preview_content', @@ -21,9 +21,7 @@ if( !empty( $gLibertySystem ) ) { 'content_view_tpl' => 'bitpackage:pigeonholes/display_members.tpl', 'content_nav_tpl' => 'bitpackage:pigeonholes/display_paths.tpl', ) ); -} -if( $gBitSystem->isPackageActive( 'pigeonholes' ) ) { // include service functions require_once( PIGEONHOLES_PKG_PATH.'servicefunctions_inc.php' ); |
