From: Fomafix Date: Tue, 26 Jan 2016 14:47:27 +0000 (+0000) Subject: mediawiki.page.patrol.ajax: Use formatversion=2 for API requests X-Git-Tag: 1.31.0-rc.0~8195^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=e16f7ccd55483f9b50c0c05beede8554ee026e58;p=lhc%2Fweb%2Fwiklou.git mediawiki.page.patrol.ajax: Use formatversion=2 for API requests With formatversion=2 the response uses UTF-8 instead of escape sequences with hex for encoding of non-ASCII characters (e.g. "\u00e4" for "รค"). The other syntax changes of formatversion=2 have no effect here. Change-Id: I0937cb0e9f757758cbaf0a2fd8dc0ef2c9a13c64 --- diff --git a/resources/src/mediawiki/page/patrol.ajax.js b/resources/src/mediawiki/page/patrol.ajax.js index f9b0d3564b..a63202f56d 100644 --- a/resources/src/mediawiki/page/patrol.ajax.js +++ b/resources/src/mediawiki/page/patrol.ajax.js @@ -31,6 +31,7 @@ apiRequest = new mw.Api(); apiRequest.postWithToken( 'patrol', { + formatversion: 2, action: 'patrol', rcid: rcid } )