summaryrefslogtreecommitdiff
path: root/lib/plugins/popularity/helper.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-07-29 16:33:44 +0200
committerMichael Hamann <michael@content-space.de>2013-07-29 16:33:44 +0200
commit7d8a6abbb21979fd77dca10275ebb8e01a04b6e4 (patch)
treea0eb4b0c05757928e8358ed1263e86b085931d17 /lib/plugins/popularity/helper.php
parent9b136f13f2219fd6d292ab3064122bec0ec33d0d (diff)
downloadrpg-7d8a6abbb21979fd77dca10275ebb8e01a04b6e4.tar.gz
rpg-7d8a6abbb21979fd77dca10275ebb8e01a04b6e4.tar.bz2
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.
Diffstat (limited to 'lib/plugins/popularity/helper.php')
-rw-r--r--lib/plugins/popularity/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/popularity/helper.php b/lib/plugins/popularity/helper.php
index 5bbeddba0..0e38bcb88 100644
--- a/lib/plugins/popularity/helper.php
+++ b/lib/plugins/popularity/helper.php
@@ -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;
}