summaryrefslogtreecommitdiff
path: root/BitInstaller.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-08 21:51:13 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-08 21:51:13 +0000
commitbbae8f2346df71bb8ae3ebadd77484fd75d21e47 (patch)
tree38b5e1150fc8e80c9c0f2800201885cb3451377e /BitInstaller.php
parent5a5be3152bddf3aba2f10fbb1991356ba75b9ff8 (diff)
downloadinstall-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 'BitInstaller.php')
-rw-r--r--BitInstaller.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/BitInstaller.php b/BitInstaller.php
index 116cfd5..d0b2c1d 100644
--- a/BitInstaller.php
+++ b/BitInstaller.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.14 2006/02/03 18:32:34 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.15 2006/02/08 21:51:13 squareing Exp $
* @package install
*/
@@ -292,7 +292,7 @@ if( !is_array( $gBitSystem->mUpgrades[$package][$i] ) ) {
}
// turn on features that are turned on
if( $gBitSystem->isFeatureActive( 'feature_'.$package ) ) {
- $gBitSystem->storePreference( 'package_'.$package, 'y', $package );
+ $gBitSystem->storePreference( 'package_'.$package, 'y', KERNEL_PKG_NAME );
}
}
}
@@ -306,8 +306,8 @@ function process_sql_file( $file, $gBitDbType, $pBitDbPrefix ) {
global $failedcommands;
global $gBitSmarty;
if(!isset($succcommands)) {
- $succcommands=array();
- $failedcommands=array();
+ $succcommands=array();
+ $failedcommands=array();
}
if( !file_exists( INSTALL_PKG_PATH.'db/'.$file ) ) {