Merge "Implement non-JS RollbackAction with form"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 21 Mar 2019 12:00:23 +0000 (12:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 21 Mar 2019 12:00:23 +0000 (12:00 +0000)
1  2 
includes/Linker.php

diff --combined includes/Linker.php
@@@ -1769,8 -1769,6 +1769,8 @@@ class Linker 
                }
  
                if ( $context->getUser()->getBoolOption( 'showrollbackconfirmation' ) ) {
 +                      $stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
 +                      $stats->increment( 'rollbackconfirmation.event.load' );
                        $context->getOutput()->addModules( 'mediawiki.page.rollback.confirmation' );
                }
  
                }
  
                $title = $rev->getTitle();
                $query = [
                        'action' => 'rollback',
                        'from' => $rev->getUserText(),
                        'token' => $context->getUser()->getEditToken( 'rollback' ),
                ];
                $attrs = [
                        'data-mw' => 'interface',
                        'title' => $context->msg( 'tooltip-rollback' )->text(),
                        'data-rollback-count' => (int)$editCount
                ];
                $options = [ 'known', 'noclasses' ];
  
                if ( $context->getRequest()->getBool( 'bot' ) ) {
+                       //T17999
+                       $query['hidediff'] = '1';
                        $query['bot'] = '1';
-                       $query['hidediff'] = '1'; // T17999
                }
  
                $disableRollbackEditCount = false;