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 "Html: Update list of $voidElements"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMain.php
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
1f3c76a
..
ae3f3f2
100644
(file)
--- a/
includes/api/ApiMain.php
+++ b/
includes/api/ApiMain.php
@@
-1299,7
+1299,7
@@
class ApiMain extends ApiBase {
}
if ( $module->isWriteMode()
}
if ( $module->isWriteMode()
- &&
in_array( 'bot', $this->getUser()->getGroups()
)
+ &&
$this->getUser()->isBot(
)
&& wfGetLB()->getServerCount() > 1
) {
$this->checkBotReadOnly();
&& wfGetLB()->getServerCount() > 1
) {
$this->checkBotReadOnly();