API: update documentation and suppress warning when parsing summary
authorSorawee Porncharoenwase <nullzero.free@gmail.com>
Sun, 19 Jan 2014 05:58:45 +0000 (12:58 +0700)
committerAnomie <bjorsch@wikimedia.org>
Fri, 7 Feb 2014 15:24:57 +0000 (15:24 +0000)
commitf554d1871c7daa5d3cd8f10326bd610dcc126caa
treed93dbc943dcebbfbbf11e590bf16e064076a5c78
parent35c065b0fcbbbbcb24552c878a760e347359fc1b
API: update documentation and suppress warning when parsing summary

The documentation states that if contentmodel and title are not given,
but text exists, "wikitext" will be the default model. However, the
actual code will show a warning if do so. This patch fixes the inconsistence
by removing some parts of the documentation which encourages giving
only text as the parameter and corrects the example. The patch
also suppresses the warning that contentmodel must be given when
summary parameter is given.

bug: 60192
Change-Id: I0f41c83763fbb5551aa3ceaff59c1f8fe38310be
includes/api/ApiParse.php