diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-09-12 20:02:09 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-09-12 20:02:09 +0000 |
| commit | 86e7b6e5940f0909b6900eed73c0cb252ecdc5b4 (patch) | |
| tree | e65386c936c986b6fce837c0d56ea319200a02ff | |
| parent | b1bcd6a8c58dd79eeed981285b58a7e4bd51a9bf (diff) | |
| download | rss-86e7b6e5940f0909b6900eed73c0cb252ecdc5b4.tar.gz rss-86e7b6e5940f0909b6900eed73c0cb252ecdc5b4.tar.bz2 rss-86e7b6e5940f0909b6900eed73c0cb252ecdc5b4.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.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php index 2d7f034..eb1297e 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -8,6 +8,11 @@ $registerHash = array( $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( 'rss' ) ) { - $gBitSystem->registerAppMenu( RSS_PKG_NAME, 'RSS', RSS_PKG_URL.'index.php', 'bitpackage:rss/menu_rss.tpl', 'rss' ); + $menuHash = array( + 'package_name' => RSS_PKG_NAME, + 'index_url' => RSS_PKG_URL.'index.php', + 'menu_template' => 'bitpackage:rss/menu_rss.tpl', + ); + $gBitSystem->registerAppMenu( $menuHash ); } ?> |
