| @@ 592-601 (lines=10) @@ | ||
| 589 | 'pageStatus' => 'changed' |
|
| 590 | ]; |
|
| 591 | ||
| 592 | DeferredUpdates::addCallableUpdate( function() use ( $rc, $tags ) { |
|
| 593 | $rc->save(); |
|
| 594 | if ( $rc->mAttribs['rc_patrolled'] ) { |
|
| 595 | PatrolLog::record( $rc, true, $rc->getPerformer() ); |
|
| 596 | } |
|
| 597 | if ( count( $tags ) ) { |
|
| 598 | ChangeTags::addTags( $tags, $rc->mAttribs['rc_id'], |
|
| 599 | $rc->mAttribs['rc_this_oldid'], null, null ); |
|
| 600 | } |
|
| 601 | } ); |
|
| 602 | ||
| 603 | return $rc; |
|
| 604 | } |
|
| @@ 664-673 (lines=10) @@ | ||
| 661 | 'pageStatus' => 'created' |
|
| 662 | ]; |
|
| 663 | ||
| 664 | DeferredUpdates::addCallableUpdate( function() use ( $rc, $tags ) { |
|
| 665 | $rc->save(); |
|
| 666 | if ( $rc->mAttribs['rc_patrolled'] ) { |
|
| 667 | PatrolLog::record( $rc, true, $rc->getPerformer() ); |
|
| 668 | } |
|
| 669 | if ( count( $tags ) ) { |
|
| 670 | ChangeTags::addTags( $tags, $rc->mAttribs['rc_id'], |
|
| 671 | $rc->mAttribs['rc_this_oldid'], null, null ); |
|
| 672 | } |
|
| 673 | } ); |
|
| 674 | ||
| 675 | return $rc; |
|
| 676 | } |
|