diff --git a/contrib/report_image/main.php b/contrib/report_image/main.php index ae7b37b4..bdbfab73 100644 --- a/contrib/report_image/main.php +++ b/contrib/report_image/main.php @@ -32,7 +32,6 @@ class AddReportedImageEvent extends Event { class ReportImage extends Extension { public function onInitExt(InitExtEvent $event) { global $config; - $config->set_default_bool('report_image_show_thumbs', true); if($config->get_int("ext_report_image_version") < 1) { $this->install(); @@ -88,13 +87,6 @@ class ReportImage extends Extension { } } - public function onSetupBuilding(SetupBuildingEvent $event) { - $sb = new SetupBlock("Report Image Options"); - $sb->add_bool_option("report_image_anon", "Allow anonymous image reporting: "); - $sb->add_bool_option("report_image_show_thumbs", "
Show thumbnails in admin panel: "); - $event->panel->add_block($sb); - } - public function onUserBlockBuilding(UserBlockBuildingEvent $event) { global $user; if($user->can("view_image_report")) { diff --git a/contrib/report_image/theme.php b/contrib/report_image/theme.php index 9200f6c9..4e3afb9c 100644 --- a/contrib/report_image/theme.php +++ b/contrib/report_image/theme.php @@ -19,13 +19,7 @@ class ReportImageTheme extends Themelet { foreach($reports as $report) { $image = $report['image']; $h_reason = format_text($report['reason']); - - if($config->get_bool('report_image_show_thumbs')) { - $image_link = $this->build_thumb_html($image); - } - else { - $image_link = "id}")."\">{$image->id}"; - } + $image_link = $this->build_thumb_html($image); $reporter_name = html_escape($report['reporter_name']); $userlink = "$reporter_name";