don't overwrite global $user...
This commit is contained in:
parent
b17fe7e7bd
commit
8448a4cee1
@ -260,9 +260,9 @@ class UserPage extends Extension {
|
|||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
if(preg_match("/^(poster|user)=(.*)$/i", $event->term, $matches)) {
|
if(preg_match("/^(poster|user)=(.*)$/i", $event->term, $matches)) {
|
||||||
$user = User::by_name($matches[2]);
|
$duser = User::by_name($matches[2]);
|
||||||
if(!is_null($user)) {
|
if(!is_null($duser)) {
|
||||||
$user_id = $user->id;
|
$user_id = $duser->id;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$user_id = -1;
|
$user_id = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user