aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/ajax.js
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2020-01-03 11:25:50 +0100
committerMarc Alexander <admin@m-a-styles.de>2020-01-03 11:25:50 +0100
commitb83de54bb4fd3217b41f61de896e73732752d196 (patch)
treeda7dc53e5d6804286f0abd500fa9b0efe767c799 /phpBB/adm/style/ajax.js
parent261bf416ee4238c56df57e2d3cf4165b3a654e62 (diff)
parenta0ffbfce315ce45df4085d4c83536f2024e71a3f (diff)
downloadforums-b83de54bb4fd3217b41f61de896e73732752d196.tar
forums-b83de54bb4fd3217b41f61de896e73732752d196.tar.gz
forums-b83de54bb4fd3217b41f61de896e73732752d196.tar.bz2
forums-b83de54bb4fd3217b41f61de896e73732752d196.tar.xz
forums-b83de54bb4fd3217b41f61de896e73732752d196.zip
Merge pull request #5811 from paul999/ticket/16287
[ticket/16287] After installation an error message regarding statisti…
Diffstat (limited to 'phpBB/adm/style/ajax.js')
-rw-r--r--phpBB/adm/style/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index 644e74bef7..39b63e4696 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
@@ -74,7 +74,7 @@ phpbb.prepareSendStats = function () {
var $sendStatisticsSuccess = $('<input />', {
type: 'hidden',
name: 'send_statistics_response',
- value: res
+ value: JSON.stringify(res)
});
$sendStatisticsSuccess.appendTo('p.submit-buttons');
@@ -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