X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRedirect.php;h=553e2b1235bdcca527e3518797e5fb6d8102d609;hb=fa16b9fddf3ae05601b335c8709fa28b1d5430e6;hp=774fd80ca2bfeb80e302172b2782332face4b615;hpb=c4b064f83415ab5b4a5f9aedad20ffd16e599253;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 774fd80ca2..553e2b1235 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 @@ -55,6 +54,7 @@ class SpecialRedirect extends FormSpecialPage { /** * Set $mType and $mValue based on parsed value of $subpage. + * @param string $subpage */ function setParameter( $subpage ) { // parse $subpage to pull out the parts @@ -262,6 +262,34 @@ 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', + ); + } + + /** + * @return bool + */ + public function requiresWrite() { + return false; + } + + /** + * @return bool + */ + public function requiresUnblock() { + return false; + } + protected function getGroupName() { return 'redirects'; }