summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-09-12 20:02:05 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-09-12 20:02:05 +0000
commit088bbce5939208658f09d031a1c290bb6aeac87c (patch)
treed4e753eed60e57a2b2ed8a0e76730bf60a3e9204
parentda4bbc14d83a192cf0fcfa531e7d1eb4b88d411e (diff)
downloadcalendar-088bbce5939208658f09d031a1c290bb6aeac87c.tar.gz
calendar-088bbce5939208658f09d031a1c290bb6aeac87c.tar.bz2
calendar-088bbce5939208658f09d031a1c290bb6aeac87c.zip
clean up registerAppMenu API, clean up a lot of the menu code, don't assign appMenu to templates but use $gBitSystem->mAppMenu directly
-rw-r--r--bit_setup_inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index df53a3d..77e9e2e 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -10,7 +10,12 @@ $gBitSystem->registerPackage( $registerHash );
if( $gBitSystem->isPackageActive( 'calendar' ) ) {
if( $gBitUser->hasPermission( 'p_calendar_view' ) ) {
- $gBitSystem->registerAppMenu( CALENDAR_PKG_NAME, ucfirst( CALENDAR_PKG_DIR ), CALENDAR_PKG_URL.'index.php', 'bitpackage:calendar/menu_calendar.tpl', CALENDAR_PKG_NAME );
+ $menuHash = array(
+ 'package_name' => CALENDAR_PKG_NAME,
+ 'index_url' => CALENDAR_PKG_URL.'index.php',
+ 'menu_template' => 'bitpackage:calendar/menu_calendar.tpl',
+ );
+ $gBitSystem->registerAppMenu( $menuHash );
}
}