This commit is contained in:
Shish 2020-02-25 12:18:47 +00:00
parent b44a4de42c
commit d97f492aaf
2 changed files with 18 additions and 5 deletions

View file

@ -38,10 +38,22 @@ class ArchiveFileHandler extends DataHandlerExtension
}
}
public function onDisplayingImage(DisplayingImageEvent $event) {}
public function onDisplayingImage(DisplayingImageEvent $event)
{
}
// we don't actually do anything, just accept one upload and spawn several
protected function media_check_properties(MediaCheckPropertiesEvent $event): void {}
protected function check_contents(string $tmpname): bool {return false;}
protected function create_thumb(string $hash, string $type): bool {return false;}
protected function media_check_properties(MediaCheckPropertiesEvent $event): void
{
}
protected function check_contents(string $tmpname): bool
{
return false;
}
protected function create_thumb(string $hash, string $type): bool
{
return false;
}
}

View file

@ -252,7 +252,8 @@ class UploadTheme extends Themelet
";
}
protected function get_accept() {
protected function get_accept()
{
return join(",", DataHandlerExtension::get_all_supported_exts());
}
}