blob: 6f60cd8c64a747a4d44be5d46114b7bb5740a42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
global $gBitSystem, $gBitUser;
$registerHash = array(
'package_name' => 'wiki',
'package_path' => 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',
'admin_comments_url' => KERNEL_PKG_URL.'admin/index.php?page=wiki',
);
$gBitSystem->registerAppMenu( $menuHash );
}
$gBitSystem->registerNotifyEvent( array( "wiki_page_changes" => tra("Any wiki page is changed") ) );
$wiki_home_page = $gBitSystem->getConfig("wiki_home_page", 'HomePage');
}
?>
|