? 520028_cb_paths_language_fix.patch
Index: custom_breadcrumbs_paths.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/custom_breadcrumbs/custom_breadcrumbs_paths/Attic/custom_breadcrumbs_paths.module,v
retrieving revision 1.1.2.19
diff -u -r1.1.2.19 custom_breadcrumbs_paths.module
--- custom_breadcrumbs_paths.module	20 Oct 2009 01:38:49 -0000	1.1.2.19
+++ custom_breadcrumbs_paths.module	15 Nov 2009 20:15:19 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: custom_breadcrumbs_paths.module,v 1.1.2.19 2009/10/20 01:38:49 mgn Exp $
+// $Id: custom_breadcrumbs_paths.module,v 1.1.2.16 2009/09/28 18:24:42 mgn Exp $
 
 /**
  * @file
@@ -163,11 +163,17 @@
 function _custom_breadcrumbs_paths_page_match($breadcrumb) {
   $page_match = FALSE;
   if (isset($_REQUEST['q'])) {
-    if (isset($breadcrumb->language)) {
+    if (isset($breadcrumb->language) && $breadcrumb->language != '') {
       // Check for a match on the prefixed path.
       $path = $breadcrumb->language .'/'. $breadcrumb->specific_path;
       $page_match = _custom_breadcrumbs_match_path($_REQUEST['q'], $path);
     }
+    else {
+      // Append the current language if the breadcrumb language is 'All'.
+      global $language;
+      $path = $language->language .'/'. $breadcrumb->specific_path;
+      $page_match = _custom_breadcrumbs_match_path($_REQUEST['q'], $path);
+    }
     if (!$page_match) {
       // Check for a direct match.
       $page_match = _custom_breadcrumbs_match_path($_REQUEST['q'], $breadcrumb->specific_path);
