mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-07 14:43:45 -04:00
Changement sauvegarde configuration
Changement oublié dans
66229a5d71
pour https://github.com/marienfressinaud/FreshRSS/issues/126
This commit is contained in:
@@ -79,7 +79,8 @@ class FreshRSS_Configuration {
|
||||
}
|
||||
|
||||
public function save() {
|
||||
if (file_put_contents($this->filename, "<?php\n return " . var_export($array, true) . ';', LOCK_EX) === false) {
|
||||
@rename($this->filename, $this->filename . '.bak');
|
||||
if (file_put_contents($this->filename, "<?php\n return " . var_export($this->data, true) . ';', LOCK_EX) === false) {
|
||||
throw new Minz_PermissionDeniedException($this->filename);
|
||||
}
|
||||
if (function_exists('opcache_invalidate')) {
|
||||
|
||||
Reference in New Issue
Block a user