Move adjustment of revision delete target in SpecialRevisiondelete to fix fatal
authoraude <aude.wiki@gmail.com>
Fri, 25 Jul 2014 15:53:52 +0000 (17:53 +0200)
committerAude <aude.wiki@gmail.com>
Fri, 25 Jul 2014 16:00:08 +0000 (16:00 +0000)
commit570b6bdffee3ef1a81cfc83f0fdb7d8a15ea77a6
treef0bc74fd88b40153038d82280fa987e38f5dbae9
parent7458dc32d99e6dd569b1629762443d074b6a3c52
Move adjustment of revision delete target in SpecialRevisiondelete to fix fatal

targetObj needs to be set correctly before accessing the RevisionList,
and trying to get the 'current'.  If not set correctly, then $title
given to RevisionList (and it's subclasses) is Special:Revisiondelete
and rev_page is 0. So nothing is found for 'current' and a fatal
error happens.

Follow-up to Id1baacb

Bug: 68566
Change-Id: Ic078af5417798db1b2900057dbf7514112e94b46
includes/specials/SpecialRevisiondelete.php