Skip to content

Commit

Permalink
Update tmpldata.php
Browse files Browse the repository at this point in the history
Fixed bug with template data not being saved
  • Loading branch information
jbogdani committed Nov 3, 2023
1 parent 1e1a42c commit e9edda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tmpldata/tmpldata.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function save()
mkdir(dirname($this->data_file), 0755, true);
}

if (!utils::write_in_file( json_encode($this->data_file, $this->post['data'], JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_FORCE_OBJECT) )) {
if (!utils::write_in_file( $this->data_file, json_encode($this->post['data'], JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT|JSON_FORCE_OBJECT) )) {
throw new Exception();
}
}
Expand Down

0 comments on commit e9edda9

Please sign in to comment.