Merge "Revert "Allow auto suggestion for subpages of Special:BotPasswords""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 4 Mar 2016 16:42:18 +0000 (16:42 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 4 Mar 2016 16:42:18 +0000 (16:42 +0000)
1  2 
includes/specials/SpecialBotPasswords.php

@@@ -84,6 -84,7 +84,6 @@@ class SpecialBotPasswords extends FormS
        }
  
        protected function getFormFields() {
 -              $that = $this;
                $user = $this->getUser();
                $request = $this->getRequest();
  
                $out->addReturnTo( $this->getPageTitle() );
        }
  
-       /**
-        * Return an array of subpages beginning with $search that this special page will accept.
-        *
-        * @param string $search Prefix to search for
-        * @param int $limit Maximum number of results to return (usually 10)
-        * @param int $offset Number of results to skip (usually 0)
-        * @return string[] Matching subpages
-        */
-       public function prefixSearchSubpages( $search, $limit, $offset ) {
-               $user = User::newFromName( $search );
-               if ( !$user ) {
-                       // No prefix suggestion for invalid user
-                       return [];
-               }
-               // Autocomplete subpage as user list - public to allow caching
-               return UserNamePrefixSearch::search( 'public', $search, $limit, $offset );
-       }
        protected function getGroupName() {
                return 'users';
        }