dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Check normalization rules of usernames during signup"
[lhc/web/wiklou.git]
/
includes
/
actions
/
ProtectAction.php
diff --git
a/includes/actions/ProtectAction.php
b/includes/actions/ProtectAction.php
index
443660b
..
2e9e093
100644
(file)
--- a/
includes/actions/ProtectAction.php
+++ b/
includes/actions/ProtectAction.php
@@
-41,16
+41,18
@@
class ProtectAction extends FormlessAction {
}
public function show() {
}
public function show() {
- global $wgUseMediaWikiUIEverywhere;
- if ( $wgUseMediaWikiUIEverywhere ) {
+ if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
$out = $this->getOutput();
$out = $this->getOutput();
- $out->addModuleStyles(
array(
+ $out->addModuleStyles(
[
'mediawiki.ui.input',
'mediawiki.ui.checkbox',
'mediawiki.ui.input',
'mediawiki.ui.checkbox',
-
)
);
+
]
);
}
$this->page->protect();
}
}
$this->page->protect();
}
-}
+ public function doesWrites() {
+ return true;
+ }
+}