Move Title null check in Special:RevisionDelete
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 3 Jun 2015 19:16:41 +0000 (21:16 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 3 Jun 2015 19:17:33 +0000 (21:17 +0200)
commit2fa1d7b34d124d86e865f154a761d88cf3503822
tree36ccd9c431c29520f62c574f1c71eecb8fb6345e
parentce5a0c5cd2ed4ef80b3bbbf3e91dcfe45ee7955c
Move Title null check in Special:RevisionDelete

The property $this->targetObj was used before null check in
SpecialRevisionDelete::getList

Move up the existing null check to avoid the fatal:

Catchable fatal error: Argument 3 passed to
RevisionDeleter::createList() must be an instance of Title, null given,
called in \includes\specials\SpecialRevisiondelete.php on line 354 and
defined in \includes\revisiondelete\RevisionDeleter.php on line 83

On request with an unknown rev id

Follow-Up: Ic078af5417798db1b2900057dbf7514112e94b46
Bug: T96538
Change-Id: I0c7913ecb11ffce844add7b1f3b810d54c367519
includes/specials/SpecialRevisiondelete.php