Closed (fixed)
Project:
Drupal core
Version:
7.23
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2013 at 14:53 UTC
Updated:
12 Nov 2013 at 14:51 UTC
Jump to comment: Most recent
function l($text, $path, array $options = array()) {
global $language_url;
static $use_theme = NULL;
// Merge in defaults.
$options += array(
'attributes' => array(),
'html' => FALSE,
);
// Append active class.
if (($path == $_GET['q'] || ($path == '<front>' && drupal_is_front_page())) &&
(empty($options['language']) || $options['language']->language == $language_url->language)) {
$options['attributes']['class'][] = 'active';
}'class' should be declared as an array() first.
Comments
Comment #1
bogdanru commentedmy bad