X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMovePage.php;h=5213fc171d3b638f61e5597617f40c208caf506a;hb=6d5cad1d57d603e3314ff1cdedf7be8946aadfc1;hp=2ad315811c9e10a01edf960d1bdaa26b807c7b29;hpb=2311183aa0e041c2fd9c6b50f319d8defe236554;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MovePage.php b/includes/MovePage.php index 2ad315811c..5213fc171d 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -536,12 +536,20 @@ class MovePage { # Save a null revision in the page's history notifying of the move $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true, $user ); if ( !is_object( $nullRevision ) ) { - throw new MWException( 'No valid null revision produced in ' . __METHOD__ ); + throw new MWException( 'Failed to create null revision while moving page ID ' + . $oldid . ' to ' . $nt->getPrefixedDBkey() ); } $nullRevId = $nullRevision->insertOn( $dbw ); $logEntry->setAssociatedRevId( $nullRevId ); + /** + * T163966 + * Increment user_editcount during page moves + * Moved from SpecialMovepage.php per T195550 + */ + $user->incEditCount(); + if ( !$redirectContent ) { // Clean up the old title *before* reset article id - T47348 WikiPage::onArticleDelete( $this->oldTitle );