2015-10-01, 04:43:56
(2015-09-30, 20:48:21)morvy Wrote: @mvlcek can you replace & with & for getImage function ? I know it's just small thing, but you know, validators...
I18nSpecialPages::getImage (and return_special_field_image) returns the URL to an image - and the URL has & and not &
return_xxx functions return the value as is - you have to do the encoding, if needed.
Thus you can use the result to do something in PHP like output the plain URL to a log; if you use the result of this method to output the URL on your page, you must wrap it with htmlspecialchars(...).
Or use get_special_field_image, which output the complete link.