diff options
| author | modela bitweaver <bitweaver@modela> | 2016-06-21 12:45:55 -0400 |
|---|---|---|
| committer | modela bitweaver <bitweaver@modela> | 2016-06-21 12:45:55 -0400 |
| commit | b3628fe8ae6590678bcc27b1572f023e83fada24 (patch) | |
| tree | 6e987eff7856ef15edad8277d84482c2ae78b9fe /index.php | |
| parent | b421fab8cdc38fc4cbda32d1b51650be6c18e9b6 (diff) | |
| download | bitweaver-b3628fe8ae6590678bcc27b1572f023e83fada24.tar.gz bitweaver-b3628fe8ae6590678bcc27b1572f023e83fada24.tar.bz2 bitweaver-b3628fe8ae6590678bcc27b1572f023e83fada24.zip | |
update for BitSystem::get(set)ActivePackage() instead of ACTIVE_PACKAGE
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -5,16 +5,13 @@ */ require_once( 'kernel/setup_inc.php' ); -// $gBitSystem->loadLayout() needs ACTIVE_PACKAGE if( !$gBitSystem->isDatabaseValid() ) { install_error(); -} elseif( !defined( 'ACTIVE_PACKAGE' )) { +} elseif( !$gBitSystem->getActivePackage() ) { $bit_index = $gBitSystem->getConfig( 'bit_index' ); if( in_array( $bit_index, array_keys( $gBitSystem->mPackages )) && defined( strtoupper( $bit_index ).'_PKG_PATH' )) { - define( 'ACTIVE_PACKAGE', constant( strtoupper( $bit_index ).'_PKG_NAME' )); - $gBitSystem->mActivePackage = $bit_index; + $gBitSystem->setActivePackage( $bit_index ); } else { - define( 'ACTIVE_PACKAGE', KERNEL_PKG_NAME ); unset( $bit_index ); } } |
