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:
3dd09a4
)
follow up r84134 — removing passing $this by reference
author
Mark A. Hershberger
<mah@users.mediawiki.org>
Thu, 16 Jun 2011 23:36:41 +0000
(23:36 +0000)
committer
Mark A. Hershberger
<mah@users.mediawiki.org>
Thu, 16 Jun 2011 23:36:41 +0000
(23:36 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
4459184
..
d21693a
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-2233,7
+2233,7
@@
class User {
* @param $group String Name of the group to add
*/
function addGroup( $group ) {
* @param $group String Name of the group to add
*/
function addGroup( $group ) {
- if( wfRunHooks( 'UserAddGroup', array(
&
$this, &$group ) ) ) {
+ if( wfRunHooks( 'UserAddGroup', array( $this, &$group ) ) ) {
$dbw = wfGetDB( DB_MASTER );
if( $this->getId() ) {
$dbw->insert( 'user_groups',
$dbw = wfGetDB( DB_MASTER );
if( $this->getId() ) {
$dbw->insert( 'user_groups',
@@
-2259,7
+2259,7
@@
class User {
*/
function removeGroup( $group ) {
$this->load();
*/
function removeGroup( $group ) {
$this->load();
- if( wfRunHooks( 'UserRemoveGroup', array(
&
$this, &$group ) ) ) {
+ if( wfRunHooks( 'UserRemoveGroup', array( $this, &$group ) ) ) {
$dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'user_groups',
array(
$dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'user_groups',
array(