jenkins-bot has submitted this change and it was merged.

Change subject: Revert "Allow auto suggestion for subpages of 
Special:BotPasswords"
......................................................................


Revert "Allow auto suggestion for subpages of Special:BotPasswords"

This is completely wrong. If you're going to auto-complete anything here (which 
is probably not really necessary), you need to auto-complete the "bot names" 
for the current user rather than every user name on the wiki.

This reverts commit aa8823ac4b58be611caf2595ad3c7b0ecacbc8ac.

Change-Id: I5d477198827c107f947d25dddc2513f12d2bfd62
---
M includes/specials/SpecialBotPasswords.php
1 file changed, 0 insertions(+), 18 deletions(-)

Approvals:
  Anomie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialBotPasswords.php 
b/includes/specials/SpecialBotPasswords.php
index 8aa81fb..47e3316 100644
--- a/includes/specials/SpecialBotPasswords.php
+++ b/includes/specials/SpecialBotPasswords.php
@@ -347,24 +347,6 @@
                $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';
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/274974
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5d477198827c107f947d25dddc2513f12d2bfd62
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to