Closed (fixed)
Project:
Embedded Media Field
Version:
6.x-1.x-dev
Component:
Embedded Image Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2010 at 22:31 UTC
Updated:
2 Aug 2010 at 17:20 UTC
In the theme function to render images, theme_emimage_image(), parameters 6 and 7 are image width and height. The very next block of code checks to see if they are defined, and if not tries to set some appropriate values.
I think both of these should have a default value of NULL. This would allow the function to be called with one of those parameters empty, and have the image resized appropriately. The attached patch makes the very small change.
| Comment | File | Size | Author |
|---|---|---|---|
| emfield_height_width_null.patch | 851 bytes | kscheirer |
Comments
Comment #1
aaron commentedseems reasonable. thanks, @kscheirer!