From: Petr Pchelko Date: Tue, 18 Oct 2016 23:32:07 +0000 (-0700) Subject: ApiPurge: Remove setTriggeringUser call. X-Git-Tag: 1.31.0-rc.0~5073^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=d9139aa0b8065feb1dfac2860b745882db7eb080;p=lhc%2Fweb%2Fwiklou.git ApiPurge: Remove setTriggeringUser call. This is a revert of 84ffa5d1242. At that point we've been implementing page-properties-change event for the EventBus extension and thought adding this call would be a good idea. However, it was discovered afterwards that there's much more extensions that don't set the triggering user. Since that call is deprecated and plans are to remove it - revert the change. Change-Id: I9891da628f968970247edc37cccd4a666950273b --- diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 8be523e919..8bbd88dfec 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -103,11 +103,6 @@ class ApiPurge extends ApiBase { $updates = $content->getSecondaryDataUpdates( $title, null, $forceRecursiveLinkUpdate, $p_result ); foreach ( $updates as $update ) { - # Some extensions, like EventBus, need to know the user - # that performed the purge action, so set it here - if ( $update instanceof LinksUpdate ) { - $update->setTriggeringUser( $user ); - } DeferredUpdates::addUpdate( $update, DeferredUpdates::PRESEND ); }