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:
ed9c05b
)
Made addAutopromoteOnceGroups check wfReadOnly
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 26 Mar 2015 22:20:14 +0000
(15:20 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 26 Mar 2015 22:20:14 +0000
(15:20 -0700)
Change-Id: I2fecf6616dd00cd34647f67298583ea8ec2977c0
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
46e3474
..
62613e6
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-1388,7
+1388,7
@@
class User implements IDBAccessObject {
global $wgAutopromoteOnceLogInRC, $wgAuth;
$toPromote = array();
- if ( $this->getId() ) {
+ if (
!wfReadOnly() &&
$this->getId() ) {
$toPromote = Autopromote::getAutopromoteOnceGroups( $this, $event );
if ( count( $toPromote ) ) {
$oldGroups = $this->getGroups(); // previous groups
@@
-1414,6
+1414,7
@@
class User implements IDBAccessObject {
}
}
}
+
return $toPromote;
}