ApiPurge: Do not die on non content pages
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 19 Jul 2016 16:15:13 +0000 (18:15 +0200)
committerAnomie <bjorsch@wikimedia.org>
Wed, 20 Jul 2016 14:02:58 +0000 (14:02 +0000)
commit815055276a75ff01cf967a478de43f2acf8e6169
tree5fb0450b05fe9d17b4bef2769ca997817f2f3cfd
parentcf8b6e8b21713eebfac96dfbf2f3ccb88c8032e3
ApiPurge: Do not die on non content pages

Some pages seems to have page_latest = 0, and therefore no content to
linkupdate. To not get a BadMethodCallException (see T140514) there is a
null checked needed.

Change-Id: I1ebfcf131ad3f59f38ec2583650eba5b43bac999
includes/api/ApiPurge.php