);
foreach ( $updates as $key => $update ) {
- // FIXME: move category change RC stuff to a separate update.
- // RC entry addition aborts if edits where since made, which is not necessary.
- // It's also an SoC violation for links update code to care about RC.
+ // FIXME: This code probably shouldn't be here?
+ // Needed by things like Echo notifications which need
+ // to know which user caused the links update
if ( $update instanceof LinksUpdate ) {
- if ( !empty( $this->params['triggeredRecursive'] ) ) {
- $update->setTriggeredRecursive();
- }
if ( !empty( $this->params['triggeringUser'] ) ) {
$userInfo = $this->params['triggeringUser'];
if ( $userInfo['userId'] ) {
}
$update->setTriggeringUser( $user );
}
- if ( !empty( $this->params['triggeringRevisionId'] ) ) {
- $update->setRevision( $revision );
- }
}
}