summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authormodela bitweaver <bitweaver@modela>2016-06-21 12:45:55 -0400
committermodela bitweaver <bitweaver@modela>2016-06-21 12:45:55 -0400
commitb3628fe8ae6590678bcc27b1572f023e83fada24 (patch)
tree6e987eff7856ef15edad8277d84482c2ae78b9fe /index.php
parentb421fab8cdc38fc4cbda32d1b51650be6c18e9b6 (diff)
downloadbitweaver-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.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/index.php b/index.php
index fae2401..9e7a6d1 100644
--- a/index.php
+++ b/index.php
@@ -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 );
}
}