From f94a41c3df67890ec8671c00bc577c7387ad97ab Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 4 Jan 2009 11:39:07 -0800 Subject: [PATCH] more global removal --- ext/user/main.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/user/main.php b/ext/user/main.php index 37372555..9aa3a18d 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -133,11 +133,12 @@ class UserPage implements Extension { // user info is shown on all pages if($event instanceof PageRequestEvent) { - global $user; - global $page; + $user = $event->context->user; + $database = $event->context->database; + $page = $event->context->page; if($user->is_anonymous()) { - $this->theme->display_login_block($event->page); + $this->theme->display_login_block($page); } else { $ubbe = new UserBlockBuildingEvent($user);