From c81bbf4aa18dc3b16caab8fd23dec0311939a798 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 30 Jul 2005 12:52:54 +0000 Subject: - #24673: Fix deprecated usage of implode --- includes/common.inc | 2 +- includes/pager.inc | 4 ++-- includes/theme.inc | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 48c5a3498..8a85e0d71 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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); } } diff --git a/includes/pager.inc b/includes/pager.inc index 491e35cc5..dce0465a3 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -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 ''. check_plain($text) .''; diff --git a/includes/theme.inc b/includes/theme.inc index 74e2066d2..da3e846a7 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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 ''; + return ''; } /** @@ -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); } /** -- cgit v1.2.3