git-svn-id: file:///home/shish/svn/shimmie2/trunk@387 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-07-27 15:35:32 +00:00
parent c77dfdfe0d
commit 06f59cca08

View file

@ -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));