Skip to content
Snippets Groups Projects
Commit ec69ea86 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Repaired some broken variables.

parent 3563e675
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,9 @@ function update_space() {
if (current_user_can("edit_posts")) {
$plugin_dir = plugin_dir_path(__FILE__);
// Use json encoding.
$payload = json_encode($_POST["payload"]);
$filename = $plugin_dir . $payload["space"] . ".json";
$result = file_put_contents($filename, $payload["graph"]);
$payload = json_encode($_POST["graph"]);
$filename = $plugin_dir . $_POST["space"] . ".json";
$result = file_put_contents($filename, $payload);
//echo print_r($_POST);
echo "Saved file at ";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment