diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:13 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:13 +0000 |
| commit | bbae8f2346df71bb8ae3ebadd77484fd75d21e47 (patch) | |
| tree | 38b5e1150fc8e80c9c0f2800201885cb3451377e /install_packages.php | |
| parent | 5a5be3152bddf3aba2f10fbb1991356ba75b9ff8 (diff) | |
| download | install-bbae8f2346df71bb8ae3ebadd77484fd75d21e47.tar.gz install-bbae8f2346df71bb8ae3ebadd77484fd75d21e47.tar.bz2 install-bbae8f2346df71bb8ae3ebadd77484fd75d21e47.zip | |
php: introduce new method: getPref( $package, $pref, $defaut ) (order is open for discussion
tpl: $gBitPref.package.pref
applied package name to all saves - should make database more organised and should allow more reliable uninstalls in the future
Diffstat (limited to 'install_packages.php')
| -rw-r--r-- | install_packages.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install_packages.php b/install_packages.php index da95f8c..6f969b2 100644 --- a/install_packages.php +++ b/install_packages.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.27 2006/02/06 00:07:18 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.28 2006/02/08 21:51:13 squareing Exp $ * @package install * @subpackage functions */ @@ -151,7 +151,7 @@ if( !empty( $_REQUEST['cancel'] ) ) { $gBitInstaller->storePreference( 'package_'.strtolower( $package ), 'y', $package ); // we'll default wiki to the home page if( defined( 'WIKI_PKG_NAME' ) && $package == WIKI_PKG_NAME ) { - $gBitSystem->storePreference( "bit_index", WIKI_PKG_NAME ); + $gBitSystem->storePreference( "bit_index", WIKI_PKG_NAME, WIKI_PKG_NAME ); } } elseif( $method == 'uninstall' ) { // TODO: allow option to remove related content from liberty_content and liberty_structures @@ -175,7 +175,7 @@ if( !empty( $_REQUEST['cancel'] ) ) { // and let's turn on phpBB so people can find it easily. if( defined( 'PHPBB_PKG_NAME' ) ) { - $gBitInstaller->storePreference( 'package_phpbb', 'y' ); + $gBitInstaller->storePreference( 'package_phpbb', 'y', PHPBB_PKG_NAME ); } // 4. run the defaults through afterwards so we can be sure all tables needed have been created |
