Nouveau fichier json
This commit is contained in:
parent
1fc11e26b7
commit
945f45609c
@ -127,6 +127,10 @@ class JsonDb extends \Prowebcraft\Dot
|
||||
* Saving to local database
|
||||
*/
|
||||
public function save() {
|
||||
// Fichier inexistant, le créer
|
||||
if ( !file_exists($this->db) ) {
|
||||
touch($this->db);
|
||||
}
|
||||
// Backup file
|
||||
if ($this->config['backup']) {
|
||||
copy ($this->db, $this->db . '.back');
|
||||
|
Loading…
Reference in New Issue
Block a user