using jpeg's width and height in case sample's size isn't available.
this will fix the error in post#show of the image having 0 width and height (thus not showing) if the image doesn't have a sample.
This commit is contained in:
parent
322e190a57
commit
cd55735461
@ -19,8 +19,8 @@
|
||||
'alt' => $this->post->tags(),
|
||||
'id' => 'image',
|
||||
'class' => 'image',
|
||||
'width' => $file_sample['width'],
|
||||
'height' => $file_sample['height'],
|
||||
'width' => $file_sample['width'] ?: $jpeg['width'],
|
||||
'height' => $file_sample['height'] ?: $jpeg['height'],
|
||||
'large_width' => $jpeg['width'],
|
||||
'large_height' => $jpeg['height'])); ?>
|
||||
<?php elseif ($this->post->flash()) : ?>
|
||||
|
Reference in New Issue
Block a user