Index: trunk/core/kernel/utility/unit_config_reader.php =================================================================== diff -u -r4802 -r4845 --- trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4802) +++ trunk/core/kernel/utility/unit_config_reader.php (.../unit_config_reader.php) (revision 4845) @@ -443,7 +443,7 @@ function loadConfig($prefix) { if (!isset($this->prefixFiles[$prefix])) { - $this->Application->Debugger->appendTrace(); + if ($this->Application->isDebugMode()) $this->Application->Debugger->appendTrace(); trigger_error('Configuration file for prefix '.$prefix.' is unknown', E_USER_ERROR); return ; } @@ -512,9 +512,15 @@ function setUnitOption($prefix, $name, $value) { if (preg_match('/(.*)\.(.*)/', $prefix, $rets)) { + if (!isset($this->configData[$rets[1]])) { + $this->loadConfig($rets[1]); + } $this->configData[$rets[1]][$name][$rets[2]] = $value; } else { + if (!isset($this->configData[$prefix])) { + $this->loadConfig($prefix); + } $this->configData[$prefix][$name] = $value; }