diff options
Diffstat (limited to 'includes/specials/SpecialRedirect.php')
-rw-r--r-- | includes/specials/SpecialRedirect.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 2022d748..72d21ebe 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -2,7 +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,6 +262,20 @@ class SpecialRedirect extends FormSpecialPage { $form->setMethod( 'get' ); } + /** + * Return an array of subpages that this special page will accept. + * + * @return string[] subpages + */ + protected function getSubpagesForPrefixSearch() { + return array( + "file", + "page", + "revision", + "user", + ); + } + protected function getGroupName() { return 'redirects'; } |