This change prevents that "|" is interpreted as title separator and
shows the following message when the title contains a "|" character:
The requested page title contains invalid characters: "|".
Before this change the following message is shown on this case:
The requested page title is empty or contains only the name of a
namespace.
Change-Id: If67ed573ea0b5c28c59a7d90e8581c4b67528450
formatversion: 2,
action: 'query',
// If title is empty, user input is invalid, the API call will produce details about why
- titles: title ? title.getPrefixedText() : this.nameToCheck,
+ titles: [ title ? title.getPrefixedText() : this.nameToCheck ],
prop: 'imageinfo',
iiprop: 'uploadwarning',
errorformat: 'html',