Commit 6f1bf54a authored by pifagor's avatar pifagor
Browse files

Fixed test.

parent 1d59d6cb
......@@ -1134,8 +1134,8 @@ function theme_link_formatter_link_default($vars) {
unset($link_options['title']);
unset($link_options['url']);
if (isset($link_options['attributes']['class']) && !is_array($link_options['attributes']['class'])) {
$link_options['attributes']['class'] = explode(' ', $link_options['attributes']['class']);
if (isset($link_options['attributes']['class'])) {
$link_options['attributes']['class'] = array($link_options['attributes']['class']);
}
// Display a normal link if both title and URL are available.
if (!empty($vars['element']['title']) && !empty($vars['element']['url'])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment