diff options
| author | wjames5 <will@tekimaki.com> | 2008-02-26 15:41:02 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-02-26 15:41:02 +0000 |
| commit | 943f3d2cce2b5270192b285bb76ca79071bca165 (patch) | |
| tree | cdfd84da8eaa8e6738d421164009da06329dd9a3 /install_packages.php | |
| parent | ab8b4745620154c97bb3c59039c827f251b4c589 (diff) | |
| download | install-943f3d2cce2b5270192b285bb76ca79071bca165.tar.gz install-943f3d2cce2b5270192b285bb76ca79071bca165.tar.bz2 install-943f3d2cce2b5270192b285bb76ca79071bca165.zip | |
register content types on install. many packages are updated with this, but more need updatingR202
Diffstat (limited to 'install_packages.php')
| -rw-r--r-- | install_packages.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/install_packages.php b/install_packages.php index 119f404..7833a49 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.74 2007/12/12 01:05:56 joasch Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.75 2008/02/26 15:41:02 wjames5 Exp $ * @package install * @subpackage functions * @@ -410,10 +410,21 @@ if( !empty( $_REQUEST['cancel'] ) ) { } } } + + + // ---------------------- 6. ---------------------- + // register all content types for installed packages + foreach( $gBitInstaller->mContentClasses as $package => $classes ){ + if ( $gBitInstaller->isPackageInstalled( $package ) ){ + foreach ( $classes as $objectClass=>$classFile ){ + require_once( $classFile ); + $tempObject = new $objectClass(); + } + } + } - - // ---------------------- 6. ---------------------- + // ---------------------- 7. ---------------------- // Do stuff that only applies during the first install if( isset( $_SESSION['first_install'] ) && $_SESSION['first_install'] == TRUE ) { // Some packages have some special things to take care of here. @@ -481,7 +492,7 @@ if( !empty( $_REQUEST['cancel'] ) ) { - // ---------------------- 7. ---------------------- + // ---------------------- 8. ---------------------- // woo! we're done with the installation bit - below here is some generic installer stuff $gBitSmarty->assign( 'next_step', $step + 1 ); |
