X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMovepage.php;h=46d7cf7a87e5d5f962c7d23dd59a1e23260499cb;hp=7d8a493a8d411c41645a651f3252ff83684b8219;hb=c6d1ceb90a9684fa0da758d88ba1e994fad4cffc;hpb=ef1f66b2351ce726ba8da21c3c7db290c31e0b37 diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 7d8a493a8d..46d7cf7a87 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -105,7 +105,7 @@ class MovePageForm extends UnlistedSpecialPage { $permErrors = $this->oldTitle->getUserPermissionsErrors( 'move', $user ); if ( count( $permErrors ) ) { // Auto-block user's IP if the account was "hard" blocked - DeferredUpdates::addCallableUpdate( function() use ( $user ) { + DeferredUpdates::addCallableUpdate( function () use ( $user ) { $user->spreadAnyEditBlock(); } ); throw new PermissionsError( 'move', $permErrors ); @@ -776,6 +776,12 @@ class MovePageForm extends UnlistedSpecialPage { # Deal with watches (we don't watch subpages) WatchAction::doWatchOrUnwatch( $this->watch, $ot, $user ); WatchAction::doWatchOrUnwatch( $this->watch, $nt, $user ); + + /** + * T163966 + * Increment user_editcount during page moves + */ + $user->incEditCount(); } function showLogFragment( $title ) {