getgrav / getgrav/grav-plugin-comments
Solved plugin problems?
- Dominant language
- PHP
- Stars
- 54
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
I think I may have solved the problem of the plugin not working.
Line 192 originally read `$post = isset($_POST['data']) ? $_POST['data'] : [];`
However, `$_POST` as received from the form did not contain any element `data`. I replaced that line with the admittedly simpler
````
If (isset($_POST)){
$post = $_POST;
}
````
The plugin now works in my installation. I didn't actually fork the plugin, and so am not sure how to file a PR.
I also reversed `email` and `addComment` in the process section of `comments.yaml` to avoid the problem of receiving an email even though the comment was not saved.
This fix works even without `language` being set.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.