forked from ZwiiCMS-Team/ZwiiCMS
Merge branch '10313' into 11000
This commit is contained in:
commit
41408bc047
@ -127,6 +127,10 @@ class JsonDb extends \Prowebcraft\Dot
|
|||||||
* Saving to local database
|
* Saving to local database
|
||||||
*/
|
*/
|
||||||
public function save() {
|
public function save() {
|
||||||
|
// Fichier inexistant, le créer
|
||||||
|
if ( !file_exists($this->db) ) {
|
||||||
|
touch($this->db);
|
||||||
|
}
|
||||||
// Backup file
|
// Backup file
|
||||||
if ($this->config['backup']) {
|
if ($this->config['backup']) {
|
||||||
copy ($this->db, $this->db . '.back');
|
copy ($this->db, $this->db . '.back');
|
||||||
|
Loading…
Reference in New Issue
Block a user