Silence file_get_contents call

Since an earlier change already made the existence of config files not
required we do not care about any E_WARNING or notice emitted by
"file_get_contents".
This commit is contained in:
Johannes Meyer 2014-10-06 16:55:20 +02:00
parent 04ff2e271a
commit d54bfddee4
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class PreservingIniWriter extends Zend_Config_Writer_FileAbstract
$this->_config = $this->normalizeKeys($this->_config);
$newconfig = $this->_config;
$editor = new IniEditor(file_get_contents($this->_filename), $this->options);
$editor = new IniEditor(@file_get_contents($this->_filename), $this->options);
$this->diffConfigs($oldconfig, $newconfig, $editor);
$this->updateSectionOrder($newconfig, $editor);
return $editor->getText();