From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/specials/SpecialRedirect.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'includes/specials/SpecialRedirect.php') 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'; } -- cgit v1.2.3-54-g00ecf