mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-09-23 18:29:35 +00:00
Use actual booleans in API request
Popups' API query request specifies the string 'true' as the value for some boolean request parameters, but that's functionally identical to specifying boolean true -- both get encoded as param=true in the HTTP request. Change-Id: Icc5f4b8ef6faaffe4a23c964f8cd8c2582d28381
This commit is contained in:
parent
7713e343fe
commit
4ac8f1b48b
|
@ -50,12 +50,12 @@
|
|||
mw.popups.render.currentRequest = mw.popups.api.get( {
|
||||
action: 'query',
|
||||
prop: 'extracts|pageimages|revisions|info',
|
||||
redirects: 'true',
|
||||
exintro: 'true',
|
||||
redirects: true,
|
||||
exintro: true,
|
||||
exsentences: 2,
|
||||
// there is an added geometric limit on .mwe-popups-extract
|
||||
// so that text does not overflow from the card
|
||||
explaintext: 'true',
|
||||
explaintext: true,
|
||||
piprop: 'thumbnail',
|
||||
pithumbsize: 300,
|
||||
rvprop: 'timestamp',
|
||||
|
|
Loading…
Reference in a new issue