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:
Parziphal 2013-12-02 10:59:03 -05:00
parent 322e190a57
commit cd55735461

View File

@ -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()) : ?>