1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-10-31 21:33:00 +00:00

Merge branch 'master' of github.com:sbrl/Pepperminty-Wiki

This commit is contained in:
Starbeamrainbowlabs 2022-05-25 23:51:02 +01:00
commit 71544b5d9d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -397,11 +397,5 @@ function stats_load()
function stats_save($stats) function stats_save($stats)
{ {
global $paths; global $paths;
echo("STATS_SAVE BEGIN, CONTENT_DUMP:\n");
var_dump($stats);
echo("\nCONTENT_JSON:\n");
var_dump(json_encode($stats, JSON_PRETTY_PRINT, 10));
echo("\nLAST_ERROR: ".json_last_error()."\n");
echo("\nSTATS_SAVE END to $paths->statsindex\n");
return file_put_contents($paths->statsindex, json_encode($stats, JSON_PRETTY_PRINT) . "\n"); return file_put_contents($paths->statsindex, json_encode($stats, JSON_PRETTY_PRINT) . "\n");
} }