validation error when overriding imagecache preset
ashtonium - April 13, 2008 - 17:44
| Project: | Universal Link Filter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
When overriding the imagecache preset with something like [l|files/image.jpg|text|preset=small] the preset is output as an attribute in the image tag, which breaks validation. This patch simply unsets $link['attributes']['preset'] before the attributes array is output.
I've also added in "text" in the example preset override (in the Default preset field's description text) since that placeholder wasn't obvious before when it was blank.
| Attachment | Size |
|---|---|
| ulink_imagecache.presetattr-0.patch | 1.47 KB |
