[media] set $size to "unknown" if we don't know the size

This commit is contained in:
Shish 2023-12-30 13:02:31 +00:00
parent 2a23c235ec
commit 00a49f6541

View file

@ -277,6 +277,8 @@ class Media extends Extension
} elseif ($event->image->length) {
$s = ((int)($event->image->length / 100)) / 10;
$event->replace('$size', "{$s}s");
} else {
$event->replace('$size', "unknown size");
}
}