[dw-free] Wrap image alt attribute value with apostrophes
[commit: http://hg.dwscoalition.org/dw-free/rev/3a81066a13e4]
http://bugs.dwscoalition.org/show_bug.cgi?id=3959
Use apostrophes, to avoid breakage on multi-word alt text.
Patch by
skakri.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3959
Use apostrophes, to avoid breakage on multi-word alt text.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- schemes/common.tt
-------------------------------------------------------------------------------- diff -r eec83fe603d3 -r 3a81066a13e4 schemes/common.tt --- a/schemes/common.tt Fri Sep 30 01:13:39 2011 +0800 +++ b/schemes/common.tt Fri Sep 30 01:15:25 2011 +0800 @@ -55,7 +55,7 @@ <div id='[% userpic_class %]'><a href='[% site.root %]/editicons'> [%- IF remote -%][%- userpic = remote.userpic -%] [%- IF userpic && ! is_ssl -%] - <img src='[% userpic.url %]' [% userpic.img_fixedsize( 'width', 80, 'height', 80 ) %] alt=[% 'sitescheme.accountlinks.userpic.alt' | ml %] /> + <img src='[% userpic.url %]' [% userpic.img_fixedsize( 'width', 80, 'height', 80 ) %] alt='[% 'sitescheme.accountlinks.userpic.alt' | ml %]' /> [%- ELSE -%] [%- dw.img( "nouserpic_sitescheme", "", { ssl => 1} ) -%] [%- END -%] --------------------------------------------------------------------------------