Skip to content
Snippets Groups Projects
Commit 7d8a6abb authored by Michael Hamann's avatar Michael Hamann
Browse files

Fix popularity data submission in the backend FS#2808

The POST data contained the raw data instead of an array with the data
that should be submitted like in the requests from the browser. The
server backend has been fixed to be able to process both versions.
parent 9b136f13
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
function sendData($data){
$error = '';
$httpClient = new DokuHTTPClient();
$status = $httpClient->sendRequest($this->submitUrl, $data, 'POST');
$status = $httpClient->sendRequest($this->submitUrl, array('data' => $data), 'POST');
if ( ! $status ){
$error = $httpClient->error;
}
......
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