mediawiki.special.upload: Use mediawiki.api.parse
authorFomafix <fomafix@googlemail.com>
Sun, 21 Jan 2018 13:54:14 +0000 (14:54 +0100)
committerFomafix <fomafix@googlemail.com>
Sun, 21 Jan 2018 14:21:07 +0000 (15:21 +0100)
commit100e5bc580199ffc87ee210853efbd649da86eca
tree990a9af410e5192dd03f12d6f9b957b89ee9fe29
parentaf431ec783e66c12d6693d638029a9f912c14541
mediawiki.special.upload: Use mediawiki.api.parse

This also adds the parameter contentmodel=wikitext to the API request.
This ensures that the text is always parsed as wikitext, even with a
title with a different content model like 'MediaWiki:Common.js'.

Change-Id: I29f0c76c3354a8c97b8296224e14341f71726c2f
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.upload.js