Closed (fixed)
Project:
Block Title Link [D7]
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Feb 2011 at 00:38 UTC
Updated:
24 Mar 2011 at 19:51 UTC
Fatal error: [] operator not supported for strings in /home/loandesk/public_html/includes/common.inc on line 2313
I receive this error when I view a page I've linked to from a block title. The system is trying to set the "active" class on the link that block_titlelink has added.
I'm no good with making patches, but I figured out the solution and figured I'd post it.
On line 101 of the block_titlelink.module file, just add array around the 'block-title-link' class in the array.
$attributes = array(
'attributes' => array(
'class' => array('block-title-link'),
),
'html' => TRUE,
);
This will allow the menu system to add "active" as an ordinal to the item automatically and keeps both classes in place.
Hope this helps someone.
Comments
Comment #1
ngmaloney commented@jaymallison - Thanks for the info. I"ll try and push out an update ASAP.
Comment #2
ngmaloney commentedLatest dev release has patch applied.
Comment #3
ngmaloney commented