Merge "mediawiki.special.upload: Show an error message on "|""
[lhc/web/wiklou.git] / resources / src / mediawiki.special / mediawiki.special.upload.js
index 06cb2d8..b1ef224 100644 (file)
@@ -71,7 +71,7 @@
                                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',