diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 05b5e4815..de1ca0cbe 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -533,6 +533,10 @@ function theme_links($links, $attributes = array('class' => 'links')) { // Is the title HTML? $html = isset($link['html']) && $link['html']; + // Initialize fragment and query variables. + $link['query'] = isset($link['query']) ? $link['query'] : NULL; + $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL; + if ($link['href']) { $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html); } |