Closed (fixed)
Project:
Zen
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2008 at 17:22 UTC
Updated:
13 Mar 2008 at 05:51 UTC
Jump to comment: Most recent file
I wondered why <span> was displaying on the block heading when the mouse was moved over it. I am using the default Zen theme. When looking at the code in drupal 6.0 and drupal 5.7 I found out that the prototype of the function l (in includes/common.inc) has changed. But in the template.php of the Zen template for drupal 6 the function is called with paramters for drupal 5. Thus <span> is translated into <span> which is displayed as <span> and not interpreted.
Perhaps other modules, too, use the function l in that manner. You should check, if you have to change that function call.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | zen_block_hover_fix_2.patch | 3.48 KB | Aragorn450 |
| #1 | 224416_1_zen_block_hover_fix.patch | 3.57 KB | sykora |
Comments
Comment #1
sykora commentedYes, the args to l() have changed. You did all the work, I hardly did a thing :)
This is my first contributed patch, so be nice :) . Criticism is appreciated, though.
Comment #2
Aragorn450 commentedI modified your patch slightly. There were a couple of trailing commas in a few of the arrays, even though there wasn't another element in the array.
Comment #3
sykora commentedUm...Coding standards?
Check the part about the trailing commas.
Comment #4
johnalbinActually, Sykora, your patch is missing a couple commas, as per the coding standards. :-)
I’ve committed your patch. Thanks for the help!
Also, druppi, thanks for finding the cause. It looks like there are even some incorrect l() calls in Drupal 6.0 core.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.