remove a bunch of dead variables and things

This commit is contained in:
Shish
2019-10-02 11:23:57 +01:00
parent e08cdb1638
commit 30698fefdc
45 changed files with 51 additions and 111 deletions

View File

@ -100,7 +100,7 @@ class TranscodeImage extends Extension
public function onDataUpload(DataUploadEvent $event)
{
global $config, $page;
global $config;
if ($config->get_bool(TranscodeConfig::UPLOAD) == true) {
$ext = strtolower($event->type);
@ -196,7 +196,7 @@ class TranscodeImage extends Extension
$database->commit();
$total++;
} catch (Exception $e) {
log_error("transcode", "Error while bulk transcode on item $id to $format: ".$e->getMessage());
log_error("transcode", "Error while bulk transcode on item {$image->id} to $format: ".$e->getMessage());
try {
$database->rollback();
} catch (Exception $e) {
@ -291,6 +291,8 @@ class TranscodeImage extends Extension
return $this->transcode_image_gd($source_name, $source_format, $target_format);
case "convert":
return $this->transcode_image_convert($source_name, $source_format, $target_format);
default:
throw new ImageTranscodeException("No engine specified");
}
}