Merge "Remove '@section LICENSE'"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 26 Nov 2014 08:26:28 +0000 (08:26 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 26 Nov 2014 08:26:28 +0000 (08:26 +0000)
1  2 
includes/specials/SpecialRedirect.php

@@@ -2,7 -2,6 +2,6 @@@
  /**
   * Implements Special:Redirect
   *
-  * @section LICENSE
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation; either version 2 of the License, or
@@@ -263,26 -262,6 +262,26 @@@ class SpecialRedirect extends FormSpeci
                $form->setMethod( 'get' );
        }
  
 +      /**
 +       * 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
 +       * @return string[] Matching subpages
 +       */
 +      public function prefixSearchSubpages( $search, $limit = 10 ) {
 +              return self::prefixSearchArray(
 +                      $search,
 +                      $limit,
 +                      array(
 +                              "file",
 +                              "page",
 +                              "revision",
 +                              "user",
 +                      )
 +              );
 +      }
 +
        protected function getGroupName() {
                return 'redirects';
        }