Skip to content
Snippets Groups Projects
Commit 3eff65fe authored by Andreas Gohr's avatar Andreas Gohr
Browse files

config manager: always write back to the last file

in the local config cascade tree
parent d7ead009
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,8 @@ if (!class_exists('configuration')) { ...@@ -100,8 +100,8 @@ if (!class_exists('configuration')) {
if ($this->locked) return false; if ($this->locked) return false;
# $file = eval('return '.$this->_local_file.';'); // write back to the last file in the local config cascade
$file = $this->_local_files[0]; $file = end($this->_local_files);
// backup current file (remove any existing backup) // backup current file (remove any existing backup)
if (@file_exists($file) && $backup) { if (@file_exists($file) && $backup) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment