remove more config options that do nothing

This commit is contained in:
Shish 2012-03-19 10:43:54 +00:00
parent 907f958f42
commit a7a548f6cc
2 changed files with 1 additions and 15 deletions

View file

@ -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", "<br>Show thumbnails in admin panel: ");
$event->panel->add_block($sb);
}
public function onUserBlockBuilding(UserBlockBuildingEvent $event) {
global $user;
if($user->can("view_image_report")) {

View file

@ -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 = "<a href=\"".make_link("post/view/{$image->id}")."\">{$image->id}</a>";
}
$image_link = $this->build_thumb_html($image);
$reporter_name = html_escape($report['reporter_name']);
$userlink = "<a href='".make_link("user/$reporter_name")."'>$reporter_name</a>";