Clone WikiPage before delete and pass the cloned copy to ArticleDeleteComplete
authorAndrew Otto <acotto@gmail.com>
Thu, 14 Jul 2016 16:45:11 +0000 (12:45 -0400)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 15 Aug 2016 20:46:49 +0000 (20:46 +0000)
commitf8b08732a741015862f61528dc969fb8438186e3
tree48f0426c4efdf96d6cf2b33523a5545e4b7d2d90
parenta979689003acd0e2722b9abaca8d86a74f345ead
Clone WikiPage before delete and pass the cloned copy to ArticleDeleteComplete

This allows the hook to examine the state of the WikiPage instance before
the data is actually deleted from the page table.

E.g. The hook can now do $wikiPage->isRedirect(); and get correct information.

Bug: T134502
Change-Id: I715046dc8157047aff4d5bd03ea6b5a47aee58bb
includes/page/WikiPage.php