When returning rev content, always include model.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 14 Nov 2012 11:17:13 +0000 (12:17 +0100)
committerAntoine Musso <hashar@free.fr>
Wed, 14 Nov 2012 13:53:34 +0000 (14:53 +0100)
commitcef8005d3aa894b069ba659621c786e0255e2a8f
treeae256b75e190b0558b73a8db04277c9c3cd2e735
parentdbbb17e3c7981174b433743c3276b1d1cc5315b0
When returning rev content, always include model.

query=revisions can be used with rvprop=content to retrieve the
content of revisions. The contentmodel should always be included
with the content (just like the contenformat is), so the client
is able to interpret the structure contained in the content blob.

Change-Id: I67cf48f905ff83a86992e1a54f7ad0feaf2b2c94
includes/api/ApiQueryRevisions.php
tests/phpunit/includes/api/ApiQueryRevisionsTest.php [new file with mode: 0644]