remove some globals

git-svn-id: file:///home/shish/svn/shimmie2/trunk@255 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-07-10 21:16:49 +00:00
parent 0b46cc98d8
commit 6e93425fe5
7 changed files with 8 additions and 14 deletions

View File

@@ -43,8 +43,7 @@ class AdminPage extends Extension {
if(is_a($event, 'DisplayingImageEvent')) {
global $user;
if($user->is_admin()) {
global $page;
$page->add_block(new Block("Admin", $this->build_del_block($event->image->id), "left"));
$event->page->add_block(new Block("Admin", $this->build_del_block($event->image->id), "left"));
}
}