argh
git-svn-id: file:///home/shish/svn/shimmie2/trunk@387 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c77dfdfe0d
commit
06f59cca08
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ class UserPage extends Extension {
|
|||
}
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "user")) {
|
||||
global $user;
|
||||
global $database;
|
||||
$duser = ($event->count_args() == 0) ? $user : $database->get_user_by_name($event->get_arg(0));
|
||||
if(!is_null($duser)) {
|
||||
send_event(new UserPageBuildingEvent($event->page, $duser));
|
||||
|
|
Reference in a new issue