diff --git a/library/Icinga/File/Ini/IniEditor.php b/library/Icinga/File/Ini/IniEditor.php index 6878e4166..e48fef3d6 100644 --- a/library/Icinga/File/Ini/IniEditor.php +++ b/library/Icinga/File/Ini/IniEditor.php @@ -173,18 +173,13 @@ class IniEditor * Create the section if it does not exist and set the properties * * @param string $section The section name - * @param array $extend The section that should be extended by this section */ - public function setSection($section, $extend = null) + public function setSection($section) { if (false !== strpos($section, '[') || false !== strpos($section, ']')) { throw new ConfigurationError('Brackets not allowed in section: %s', $section); } - if (isset($extend)) { - $decl = '[' . $section . ' : ' . $extend . ']'; - } else { - $decl = '[' . $section . ']'; - } + $decl = '[' . $section . ']'; $line = $this->getSectionLine($section); if ($line !== -1) { $this->deleteLine($line); diff --git a/library/Icinga/File/Ini/IniWriter.php b/library/Icinga/File/Ini/IniWriter.php index 5b565a6a0..f7df9b023 100644 --- a/library/Icinga/File/Ini/IniWriter.php +++ b/library/Icinga/File/Ini/IniWriter.php @@ -151,10 +151,7 @@ class IniWriter extends Zend_Config_Writer_FileAbstract if ($value instanceof Zend_Config) { // The value is a nested Zend_Config, handle it recursively if ($section === null) { - // Update the section declaration - $extends = $newconfig->getExtends(); - $extend = array_key_exists($key, $extends) ? $extends[$key] : null; - $editor->setSection($key, $extend); + $editor->setSection($key); } if ($oldvalue === null) { $oldvalue = new Zend_Config(array());