more global removal

This commit is contained in:
Shish 2009-01-04 11:39:07 -08:00
parent 738fa3ef1e
commit f94a41c3df

View file

@ -133,11 +133,12 @@ class UserPage implements Extension {
// user info is shown on all pages // user info is shown on all pages
if($event instanceof PageRequestEvent) { if($event instanceof PageRequestEvent) {
global $user; $user = $event->context->user;
global $page; $database = $event->context->database;
$page = $event->context->page;
if($user->is_anonymous()) { if($user->is_anonymous()) {
$this->theme->display_login_block($event->page); $this->theme->display_login_block($page);
} }
else { else {
$ubbe = new UserBlockBuildingEvent($user); $ubbe = new UserBlockBuildingEvent($user);