aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/ajax.js
diff options
context:
space:
mode:
authorpaul sohier <paul999@phpbb.com>2020-01-02 15:21:34 +0100
committerpaul sohier <paul999@phpbb.com>2020-01-02 15:36:00 +0100
commitf866a8fd1bac7da74c88763447ad2f3ff1b9a10c (patch)
treea44ccad225e77725be342a9dad60b69eaef35d80 /phpBB/adm/style/ajax.js
parentdce0441ecf5fb3b163268be63552a85196dec020 (diff)
downloadforums-f866a8fd1bac7da74c88763447ad2f3ff1b9a10c.tar
forums-f866a8fd1bac7da74c88763447ad2f3ff1b9a10c.tar.gz
forums-f866a8fd1bac7da74c88763447ad2f3ff1b9a10c.tar.bz2
forums-f866a8fd1bac7da74c88763447ad2f3ff1b9a10c.tar.xz
forums-f866a8fd1bac7da74c88763447ad2f3ff1b9a10c.zip
[ticket/16287] After installation an error is given over statistics submission
The phpBB.com website required specific fields to be available for the statistics. This change switched over to a new statistics page on www.phpbb.com that uses form fields instead, and that returns JSON as value. PHPBB3-16287
Diffstat (limited to 'phpBB/adm/style/ajax.js')
-rw-r--r--phpBB/adm/style/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index 644e74bef7..b9424723bb 100644
--- a/phpBB/adm/style/ajax.js
+++ b/phpBB/adm/style/ajax.js
@@ -1,4 +1,4 @@
-/* global phpbb */
+/* global phpbb, statsData */
(function($) { // Avoid conflicts with other libraries
@@ -87,7 +87,7 @@ phpbb.prepareSendStats = function () {
$.ajax({
url: $this.attr('data-ajax-action').replace('&amp;', '&'),
type: 'POST',
- data: 'systemdata=' + encodeURIComponent($this.find('input[name=systemdata]').val()),
+ data: statsData,
success: returnHandler,
error: errorHandler,
cache: false