WikiPage::doDeleteArticleReal now triggers secondary data updates
(link tables, etc) only after the deletion proper is committed.
This is consistent with the way doEditContent applies secondary
data updates, and avoids nested transactions (e.g. by one of the
updates using a retry loop).
Change-Id: Ie4d96f77d210c9953104a0e6fb11ea8ed348c42a
// Clone the title, so we have the information we need when we log
$logTitle = clone $this->mTitle;
- $this->doDeleteUpdates( $id, $content );
-
// Log the deletion, if the page was suppressed, log it at Oversight instead
$logtype = $suppress ? 'suppress' : 'delete';
$dbw->commit( __METHOD__ );
}
+ $this->doDeleteUpdates( $id, $content );
+
wfRunHooks( 'ArticleDeleteComplete', array( &$this, &$user, $reason, $id, $content, $logEntry ) );
$status->value = $logid;
return $status;