No class attributes due to typo in flickr.inc
cesti - November 9, 2008 - 14:32
| Project: | Flickr |
| Version: | 6.x-1.x-dev |
| Component: | flickr (main module) |
| Category: | bug report |
| Priority: | normal |
| Assigned: | paulbooker |
| Status: | closed |
Jump to:
Description
After a lot of heartache, staring at the code and continuously thinking that it should work, and yet it clearly didn't, I took quite a long time to figure out why the class attribute was omitted from the HTML output. E.g. given [flickr-photo:id=xx,class=something], the HTML attribute should be class="something flickr-photo-img", not class=" flickr-photo-img".
It's a very trivial typo in flickr.inc that caused me so much trouble, though:
if (empty($attributs['class'])) {
$attributes['class'] = NULL;
}There's a single 's' missing in the first line, and the above should have been:
if (empty($attributes['class'])) {
$attributes['class'] = NULL;
}
#1
Thanks, ill get that committed.
#2