Skip to content

Commit

Permalink
Cleanup: skip sending unused JSON
Browse files Browse the repository at this point in the history
This data, when returned by this endpoint, is never used in the js
client[1].  It also causes server-side warnings!
A little bit of progress for LibriVox#153.

[1]: https://github.com/LibriVox/librivox-catalog/blob/master/public_html/js/private/validator/index.js#L29
  • Loading branch information
redrun45 committed Jan 7, 2025
1 parent e51f90f commit 724e9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/private/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function copy_project_files()
$this->librivox_id3tag->_update_section($section->id, array('file_name' => $file_name, 'playtime' => $playtime));
}

$this->ajax_output(array('message' => 'Files copied.', 'tags' => $tag_data, 'full_tags' => $fullid3_tags), TRUE);
$this->ajax_output(array('message' => 'Files copied.'), TRUE);
}

function get_file_tags()
Expand Down

0 comments on commit 724e9d9

Please sign in to comment.