Closed (fixed)
Project:
Skinr
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2011 at 19:52 UTC
Updated:
12 May 2013 at 12:40 UTC
Jump to comment: Most recent file
Skinr currently reads in CSS classes that can be defined in two ways.
'class' => array('grid16-1') 'class' => 'grid16-1'It seems to me that it would be better coding practice that only the first way of writing be allowed.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | skinr-class_arrays-1209938-5.patch | 2.63 KB | moonray |
| #4 | patch_commit_2b37b313dc8e.patch | 1.05 KB | moonray |
Comments
Comment #1
Hari commentedShould have been a little bit more specific. The above are examples of the two ways that a person could specify a class/classes in a skin.
Comment #2
sunThat's true, the second variant should not be supported. D7 always uses an array for the value of 'class'.
Comment #3
jacineI thought we fixed this already.
Comment #4
moonray commentedAttached patch triggers a warning in the logs rather than automatically fixing when a class array is given as a string instead.
Hopefully this is the right approach. :)
Comment #5
moonray commentedAttached patch adds tests.
Comment #6
moonray commentedCommitted.