Allow showing non-free images when using MediaWiki API

We used to query the MediaWiki API to only return non-free images.
This patch allows us to query the API for images with any license.
The RESTBase end point is already returning images with any license.

Bug: T158632
Change-Id: I9ac60b6f74a7f7eb2cb160ee522c2c3a26dd0858
This commit is contained in:
Baha 2017-03-03 07:42:37 -05:00 committed by Phuedx
parent 41fcbcc1da
commit b40a24c15c
4 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -33,6 +33,7 @@ function createMediaWikiApiGateway( api, config ) {
piprop: 'thumbnail',
pithumbsize: config.THUMBNAIL_SIZE,
pilicense: 'any',
rvprop: 'timestamp',
inprop: 'url',
titles: title,

View file

@ -64,6 +64,7 @@ QUnit.test( 'MediaWiki API gateway is called with correct arguments', function (
explaintext: true,
piprop: 'thumbnail',
pithumbsize: DEFAULT_CONSTANTS.THUMBNAIL_SIZE,
pilicense: 'any',
rvprop: 'timestamp',
inprop: 'url',
titles: 'Test Title',