diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-30 12:52:54 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-30 12:52:54 +0000 |
commit | c81bbf4aa18dc3b16caab8fd23dec0311939a798 (patch) | |
tree | 00702f3e32827a226cba042e145b2a28f52fa70f /includes | |
parent | 6a988f92d4dd855fb26fd67c5225c67849efc04f (diff) | |
download | brdo-c81bbf4aa18dc3b16caab8fd23dec0311939a798.tar.gz brdo-c81bbf4aa18dc3b16caab8fd23dec0311939a798.tar.bz2 |
- #24673: Fix deprecated usage of implode
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 2 | ||||
-rw-r--r-- | includes/pager.inc | 4 | ||||
-rw-r--r-- | includes/theme.inc | 4 |
3 files changed, 5 insertions, 5 deletions
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 '<a href="'. check_url($url) .'">'. check_plain($text) .'</a>'; 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 '<div class="breadcrumb">'. implode($breadcrumb, ' » ') .'</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); } /** |