Fix that the general and logging form cannot write configuration changes

fixes #5952
This commit is contained in:
Johannes Meyer 2014-04-07 09:27:37 +02:00
parent e6bb32be64
commit d109046bc0
3 changed files with 5 additions and 5 deletions

View File

@ -412,10 +412,10 @@ class GeneralForm extends Form
{
$config = $this->getConfiguration();
if ($config->global === null) {
$config->global = new Zend_Config(array());
$config->global = new Zend_Config(array(), true);
}
if ($config->preferences === null) {
$config->preferences = new Zend_Config(array());
$config->preferences = new Zend_Config(array(), true);
}
$values = $this->getValues();

View File

@ -192,10 +192,10 @@ class LoggingForm extends Form
{
$config = $this->getConfiguration();
if ($config->logging === null) {
$config->logging = new Zend_Config(array());
$config->logging = new Zend_Config(array(), true);
}
if ($config->logging->debug === null) {
$config->logging->debug = new Zend_Config(array());
$config->logging->debug = new Zend_Config(array(), true);
}
$values = $this->getValues();

View File

@ -262,7 +262,7 @@ class Form extends Zend_Form
public function getConfiguration()
{
if ($this->config === null) {
$this->config = new Zend_Config(array());
$this->config = new Zend_Config(array(), true);
}
return $this->config;
}