more global removal
This commit is contained in:
parent
738fa3ef1e
commit
f94a41c3df
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Reference in a new issue