Make ezimage template tolerant to missing quotes for href

Author Message

Marc Boon

Monday 13 March 2006 6:18:28 am

In templates/content/datatype/view/ezimage.tpl replace

href={$href}

with

href="{$href|trim('"')}"

This makes sure valid xhtml is generated no matter if the href attribute of a attribute_view_gui on an image is quoted or not. Might also be useful for other datatypes.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.