[image] we might be generating a link to an image which has not yet been posted
This commit is contained in:
parent
a7c50a0b95
commit
4c6e46b422
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ class ImageIO extends Extension
|
|||
$event->replace('$filesize', to_shorthand_int($event->image->filesize));
|
||||
$event->replace('$filename', $base_fname);
|
||||
$event->replace('$ext', $event->image->get_ext());
|
||||
$event->replace('$date', autodate($event->image->posted, false));
|
||||
if(isset($event->image->posted)) {
|
||||
$event->replace('$date', autodate($event->image->posted, false));
|
||||
}
|
||||
$event->replace("\\n", "\n");
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue