Remove deprecated call-time pass-by-reference
This commit is contained in:
parent
a02e5b302b
commit
aa6e198c12
@ -67,7 +67,7 @@ abstract class AuthorizationPlugin extends Plugin
|
|||||||
|
|
||||||
//------------Below are the methods that connect StatusNet to the implementing Auth plugin------------\\
|
//------------Below are the methods that connect StatusNet to the implementing Auth plugin------------\\
|
||||||
|
|
||||||
function onStartSetUser(&$user) {
|
function onStartSetUser($user) {
|
||||||
$loginAllowed = $this->loginAllowed($user);
|
$loginAllowed = $this->loginAllowed($user);
|
||||||
if($loginAllowed === true){
|
if($loginAllowed === true){
|
||||||
return;
|
return;
|
||||||
@ -84,7 +84,7 @@ abstract class AuthorizationPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onStartSetApiUser(&$user) {
|
function onStartSetApiUser($user) {
|
||||||
return $this->onStartSetUser($user);
|
return $this->onStartSetUser($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user