a bunch of fixes

This commit is contained in:
Shish
2009-01-22 05:42:44 -08:00
parent bda38bff6c
commit d98962a30e
12 changed files with 28 additions and 40 deletions

View File

@@ -85,10 +85,8 @@ class ReportImage implements Extension {
}
if($event instanceof DisplayingImageEvent) {
global $user;
global $config;
if($config->get_bool('report_image_anon') || !$user->is_anonymous()) {
$this->theme->display_image_banner($event->page, $event->image->id);
if($event->context->config->get_bool('report_image_anon') || !$event->context->user->is_anonymous()) {
$this->theme->display_image_banner($event->page, $event->image);
}
}