b2 0.6 pre3 fixed broken XHTML

I’ve just had to fix the convert_smilies function in b2functions.php in order to maintain XHTML compliance.
Diffs are:

diff -r1.2 -r1.3
205c205
< $content = str_replace($smiley, "<img src='$smilies_directory/$img' />", $content);
---
> $content = str_replace($smiley, "<img src='$smilies_directory/$img' alt='' />", $content);

I’ve added an empty ALT attribute to the IMG tag.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.