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(),
|
'alt' => $this->post->tags(),
|
||||||
'id' => 'image',
|
'id' => 'image',
|
||||||
'class' => 'image',
|
'class' => 'image',
|
||||||
'width' => $file_sample['width'],
|
'width' => $file_sample['width'] ?: $jpeg['width'],
|
||||||
'height' => $file_sample['height'],
|
'height' => $file_sample['height'] ?: $jpeg['height'],
|
||||||
'large_width' => $jpeg['width'],
|
'large_width' => $jpeg['width'],
|
||||||
'large_height' => $jpeg['height'])); ?>
|
'large_height' => $jpeg['height'])); ?>
|
||||||
<?php elseif ($this->post->flash()) : ?>
|
<?php elseif ($this->post->flash()) : ?>
|
||||||
|
Reference in New Issue
Block a user