show the right user

This commit is contained in:
Shish 2009-01-04 10:41:14 -08:00
parent df594aee6d
commit 98b0a55dcb

View file

@ -116,7 +116,7 @@ class UserPage implements Extension {
if($event instanceof UserPageBuildingEvent) {
global $user;
global $config;
$this->theme->display_user_page($event->context->page, $event->context->user, $user);
$this->theme->display_user_page($event->context->page, $event->display_user, $user);
if($user->id == $event->display_user->id) {
$ubbe = new UserBlockBuildingEvent($event->display_user);
send_event($ubbe);