dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17690d0
)
Make Special:Redirect work for blocked users and in read-only mode
author
Glaisher
<glaisher.wiki@gmail.com>
Thu, 15 Oct 2015 16:31:46 +0000
(21:31 +0500)
committer
Glaisher
<glaisher.wiki@gmail.com>
Thu, 15 Oct 2015 16:31:46 +0000
(21:31 +0500)
Bug: T115570
Change-Id: Id26af6efe9dc7eddb2066a2f61c86116305fff7c
includes/specials/SpecialRedirect.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialRedirect.php
b/includes/specials/SpecialRedirect.php
index
72d21eb
..
553e2b1
100644
(file)
--- a/
includes/specials/SpecialRedirect.php
+++ b/
includes/specials/SpecialRedirect.php
@@
-269,13
+269,27
@@
class SpecialRedirect extends FormSpecialPage {
*/
protected function getSubpagesForPrefixSearch() {
return array(
-
"file"
,
-
"page"
,
-
"revision"
,
-
"user"
,
+
'file'
,
+
'page'
,
+
'revision'
,
+
'user'
,
);
}
+ /**
+ * @return bool
+ */
+ public function requiresWrite() {
+ return false;
+ }
+
+ /**
+ * @return bool
+ */
+ public function requiresUnblock() {
+ return false;
+ }
+
protected function getGroupName() {
return 'redirects';
}