Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function action_initialize() {
- $config_protocol = strtolower(I2CE::getRuntimeVariable('I2CE_CONFIG_PROTOCOL', 'config_alt' ));
- switch($config_protocol) {
- case 'mongodb':
- $old_config =I2CE::getConfig()->getAsArray();
- if (! $this->createMongoDBConfig(false)) {
- return false;
- }
- break;
- default:
- if (! $this->createAltConfig(false)) {
- return false;
- }
- }
- //Re-Add The Db As A Magic Data Storage Mechanism And Dump Everyting already stored To The Db
- // The db_name stuff doesn't seem to exist anymore so I'm commenting it all out. It's
- // not being re-set anywhere anyway. -lad
- //$db_name = 'XXX';
- //$old_config->setIfIsSet($db_name,"database/DB");
- return $this->setupMagicDataStorage($old_config);
- }
Advertisement
Add Comment
Please, Sign In to add comment