Commit c81bbf4a authored by Steven Wittens's avatar Steven Wittens

- #24673: Fix deprecated usage of implode

parent 6a988f92
......@@ -1648,7 +1648,7 @@ function drupal_attributes($attributes = array()) {
foreach ($attributes as $key => $value) {
$t[] = $key .'="'. check_plain($value) .'"';
}
return ' '. implode($t, ' ');
return ' '. implode(' ', $t);
}
}
......
......@@ -394,10 +394,10 @@ function theme_pager_link($text, $page_new, $element, $attributes = array()) {
$page_new = pager_load_array($page_new[$element], $element, explode(',', $page));
if (count($attributes)) {
$url = url($q, 'page='. implode($page_new, ',') .'&'. implode('&', $query));
$url = url($q, 'page='. implode(',', $page_new) .'&'. implode('&', $query));
}
else {
$url = url($q, 'page='. implode($page_new, ','));
$url = url($q, 'page='. implode(',', $page_new));
}
return '<a href="'. check_url($url) .'">'. check_plain($text) .'</a>';
......
......@@ -538,7 +538,7 @@ function theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize
* @return a string containing the breadcrumb output.
*/
function theme_breadcrumb($breadcrumb) {
return '<div class="breadcrumb">'. implode($breadcrumb, ' &raquo; ') .'</div>';
return '<div class="breadcrumb">'. implode(' » ', $breadcrumb) .'</div>';
}
/**
......@@ -900,7 +900,7 @@ function theme_xml_icon($url) {
*/
function theme_closure($main = 0) {
$footer = module_invoke_all('footer', $main);
return implode($footer, "\n");
return implode("\n", $footer);
}
/**
......
......@@ -455,7 +455,7 @@ function statistics_block($op = 'list', $delta = 0, $edit = array()) {
}
if (count($content)) {
$block['content'] = implode($content, '<br />');
$block['content'] = implode('<br />', $content);
$block['subject'] = t('Popular content');
return $block;
}
......
......@@ -455,7 +455,7 @@ function statistics_block($op = 'list', $delta = 0, $edit = array()) {
}
if (count($content)) {
$block['content'] = implode($content, '<br />');
$block['content'] = implode('<br />', $content);
$block['subject'] = t('Popular content');
return $block;
}
......
Markdown is supported
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