Fix variable in ApiQueryProtectedTitles
authorMatěj Suchánek <matejsuchanek97@gmail.com>
Wed, 22 May 2019 18:07:08 +0000 (20:07 +0200)
committerMatěj Suchánek <matejsuchanek97@gmail.com>
Thu, 23 May 2019 16:57:23 +0000 (18:57 +0200)
commit64d24233143cb629b570a9d5382dc34f983820d6
tree4f392b2c304616a294d8e870a86e64f08cf5ea48
parent07a883388adb76bef1e760ea9d87db3c1f04ff74
Fix variable in ApiQueryProtectedTitles

Linker::formatComment accepts a Title object or null whereas
$titles is an array. I was working hard to reproduce a failure
but I couldn't since this code will only be executed with
an empty array (which evaluates to false when if-checked).
Per Anomie's suggestion, there should be no argument.

Discovered using phan.

Change-Id: I5a4df146d077cd879347709a399dce8303f41ccc
includes/api/ApiQueryProtectedTitles.php