summaryrefslogtreecommitdiff
path: root/install_packages.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-04-21 14:10:41 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-04-21 14:10:41 +0000
commitaaac2c7494fcbca55c06637a0bac717e965724b2 (patch)
tree6f9620b118b2e0664d6279b46deddec151854ad3 /install_packages.php
parent0c673250c757ed4432e7a6e7caaa529b885acce3 (diff)
downloadinstall-aaac2c7494fcbca55c06637a0bac717e965724b2.tar.gz
install-aaac2c7494fcbca55c06637a0bac717e965724b2.tar.bz2
install-aaac2c7494fcbca55c06637a0bac717e965724b2.zip
extend installer that we can have installer extensions for external packages. fix some minor stuff and clean up templates a bit.
Diffstat (limited to 'install_packages.php')
-rw-r--r--install_packages.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/install_packages.php b/install_packages.php
index f3f70d1..5d04b71 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.55 2007/04/18 18:15:19 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.56 2007/04/21 14:10:41 squareing Exp $
* @package install
* @subpackage functions
*/
@@ -43,7 +43,7 @@ if( !empty( $_REQUEST['cancel'] ) ) {
// make sure no required packages are included in this list
foreach( array_keys( $gBitInstaller->mPackages ) as $package ) {
if( in_array( $package, $_REQUEST['packages'] ) && !empty( $gBitInstaller->mPackages[$package]['required'] )) {
- $gBitSmarty->assign( 'warning', "Something unexpected has happened: One of the required packaes has appeared in the list of selected packages. This generally only happens if the installation is missing a core database table. Please contact the bitweaver developers team on how to procede." );
+ $gBitSmarty->assign( 'warning', "Something unexpected has happened: One of the required packaes has appeared in the list of selected packages. This generally only happens if the installation is missing a core database table. Please contact the bitweaver developers team on how to proceed." );
$method = FALSE;
}
}
@@ -293,6 +293,9 @@ if( !empty( $_REQUEST['cancel'] ) ) {
// apparently we need to first remove the vaue from the database to make sure it's set
$gBitSystem->storeConfig( 'package_'.$package , NULL );
$gBitSystem->storeConfig( 'package_'.$package , 'y', $package );
+ if( !empty( $gBitSystem->mPackages[$package]['version'] )) {
+ $gBitSystem->storeVersion( $package, $gBitSystem->mPackages[$package]['version'] );
+ }
$gBitInstaller->mPackages[ $package ]['installed'] = TRUE;
$gBitInstaller->mPackages[ $package ]['active_switch'] = TRUE;
// we'll default wiki to the home page