[image] we might be generating a link to an image which has not yet been posted
This commit is contained in:
@@ -211,7 +211,9 @@ class ImageIO extends Extension
|
|||||||
$event->replace('$filesize', to_shorthand_int($event->image->filesize));
|
$event->replace('$filesize', to_shorthand_int($event->image->filesize));
|
||||||
$event->replace('$filename', $base_fname);
|
$event->replace('$filename', $base_fname);
|
||||||
$event->replace('$ext', $event->image->get_ext());
|
$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");
|
$event->replace("\\n", "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user