Use the WebRequest::getCheck() shortcut where possible
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 11 Mar 2019 08:40:36 +0000 (09:40 +0100)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Mon, 11 Mar 2019 08:50:52 +0000 (09:50 +0100)
commita2c1d8c0431ad111126f6cc22a51e7ecf2a45a1b
tree844145201ccbabd1f7ee88b08cd93e1dd2d705c6
parent278ac40e9609b0b226a85e020f5e574054e1d78f
Use the WebRequest::getCheck() shortcut where possible

This is inspired by Ib117e05.

As far as I can tell this is functionally identical. Even arrays should
behave the same, as both the getVal() and getCheck() methods do have a
special case that returns the `null` default in case the user tried to
pass multiple values instead of a single scalar.

Change-Id: Id4e4ec91f39d3c39461bd41673bdafc3bde11737
includes/EditPage.php
includes/MediaWiki.php
includes/api/ApiMain.php
includes/htmlform/fields/HTMLCheckField.php
includes/specials/SpecialSearch.php
mw-config/index.php