The _custom_breadcrumbs_get_breadcrumb() function called token replacement with an array rather than a string for $text
custom_breadcrumbs 6.x-2.0-rc1 version
Замените в файле custom_breadcrumbs.module с 370 по 383 на следующий код:
// Token replacement for titles and paths
if (module_exists('token')) {
// Do token replacement.
$types = custom_breadcrumbs_token_types($objs);
#PB:20111102 foreach on titles and paths because il token_replace_multiple require a string
foreach($titles as $key => $value) {
$titles[$key] = token_replace_multiple($value, $types);
}
foreach($paths as $key => $value) {
$paths[$key] = token_replace_multiple($value, $types);
}
#\PB:20111102
}
$items = _custom_breadcrumbs_get_trail_items($breadcrumb, $titles, $paths);
if (module_exists('token')) {
// Do token replacement.
$types = custom_breadcrumbs_token_types($objs);
#PB:20111102 foreach on titles and paths because il token_replace_multiple require a string
foreach($titles as $key => $value) {
$titles[$key] = token_replace_multiple($value, $types);
}
foreach($paths as $key => $value) {
$paths[$key] = token_replace_multiple($value, $types);
}
#\PB:20111102
}
$items = _custom_breadcrumbs_get_trail_items($breadcrumb, $titles, $paths);
- Categories:
- heihachi's blog
- Add new comment
- 647 reads

Comments
Огромное спасибо
Спасибо, очень помогло!!!
Чувак, спасибо! ))))
Чувак, спасибо! ))))