[media] set $size to "unknown" if we don't know the size
This commit is contained in:
parent
2a23c235ec
commit
00a49f6541
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue