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")) {