Make WikiPage::doDeleteArticle more robust
authordaniel <daniel.kinzler@wikimedia.de>
Sat, 25 Jun 2016 16:25:13 +0000 (18:25 +0200)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 29 Aug 2016 23:18:41 +0000 (23:18 +0000)
commit506e19cc8d27c9a3405e900632d619cd2a5ebfde
treeb72207c8a9189c1c9d6f93ac59e9453470e9751f
parent4d8738f6e6be98fc8cab79555e987cf468756faf
Make WikiPage::doDeleteArticle more robust

When it becomes impossible to load the content of a page due to some
error or misconfiguration, we still want to be able to delete that
page. This change makes WikiPage::doDeleteArticle more robust by catching
any exceptions that may be thrown while trying to load the page content
during the deletion process.

See T128466 for context.

Change-Id: I19f2d16850a3c1af5b504a70a27b9bf1330bc68d
docs/hooks.txt
includes/page/WikiPage.php