diff options
Diffstat (limited to 'includes/bit_setup_inc.php')
| -rw-r--r-- | includes/bit_setup_inc.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php new file mode 100644 index 0000000..4b4b556 --- /dev/null +++ b/includes/bit_setup_inc.php @@ -0,0 +1,25 @@ +<?php +global $gBitSystem, $gBitUser; + +$registerHash = array( + 'package_name' => 'wiki', + 'package_path' => dirname( dirname( __FILE__ ) ).'/', + 'homeable' => TRUE, +); +$gBitSystem->registerPackage( $registerHash ); + +define( 'BITPAGE_CONTENT_TYPE_GUID', 'bitpage' ); + +if( $gBitSystem->isPackageActive( 'wiki' )) { + if( $gBitUser->hasPermission( 'p_wiki_view_page' )) { + $menuHash = array( + 'package_name' => WIKI_PKG_NAME, + 'index_url' => WIKI_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:wiki/menu_wiki.tpl', + ); + $gBitSystem->registerAppMenu( $menuHash ); + } + + $gBitSystem->registerNotifyEvent( array( "wiki_page_changes" => tra( "Any wiki page is changed" ))); +} +?> |
