Added increase editcount upon page move
authorAd Huikeshoven <ad@huikeshoven.org>
Sat, 20 May 2017 13:36:52 +0000 (15:36 +0200)
committerAd Huikeshoven <ad@huikeshoven.org>
Sat, 20 May 2017 14:28:44 +0000 (16:28 +0200)
Bug: T163966
Change-Id: Ie055f676534e98963c68f8b8185cca65fa8e76b1

includes/specials/SpecialMovepage.php

index 7d8a493..a2b5be4 100644 (file)
@@ -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 ) {