1
0
Fork 0
Configuration: added method that adds non visible configuration params to the config array that is used to create the config.ini file.
Dieser Commit ist enthalten in:
DSB 2011-08-28 10:17:37 +00:00
Ursprung 6093094d2e
Commit c523c74f91

Datei anzeigen

@ -333,6 +333,7 @@ class ConfigController extends Zend_Controller_Action
} }
} else { } else {
$configData = $form->getValidValues($postData); $configData = $form->getValidValues($postData);
$configData = $this->_addNonConfigurableConfigParams($configData);
$configValidator = $configValidator =
new Application_Model_Config_FormValidator($configData); new Application_Model_Config_FormValidator($configData);
$configValidator->validate($this->view); $configValidator->validate($this->view);
@ -340,6 +341,20 @@ class ConfigController extends Zend_Controller_Action
} }
} }
/**
* Add configuration params that are not configurable in gui but must be saved.
*
* @param array $configData The config array
*
* @return array
*/
private function _addNonConfigurableConfigParams($configData)
{
$config = Msd_Configuration::getInstance();
$configData['systemDatabases'] = $config->get('config.systemDatabases');
return $configData;
}
/** /**
* Set the default visibilities of the display groups inside of the form. * Set the default visibilities of the display groups inside of the form.
* The visibilities depends on the current configuration. * The visibilities depends on the current configuration.