Media: Get full file page URL from imageinfo

Authored by Mholloway on Wed, May 16, 12:41 PM.

Description

Media: Get full file page URL from imageinfo

The current code assumes that the item has a file page on Commons, which
is not always the case. Nonfree images in particular may only be present
on wikis with more permissive nonfree image policies.

Example: https://en.wikipedia.org/wiki/File:Caribbean_Airlines_logo-600x270.png
(has no corresponding File page on Commons)

This updates the code to pull the full URL from imageinfo rather than
appending the title to a Commons base URL.

Change-Id: I7bedeab7381d94299eccf6acd11e055c4abed0cc

Details