From 48212205de792f68c1ade91a207adb395d6b3a50 Mon Sep 17 00:00:00 2001
From: John McCormick <jam@neardark.com>
Date: Thu, 15 Jan 2015 10:50:25 -0700
Subject: [PATCH] Issue #2407245 by neardark: bootstrap breadcrumb title work

---
 templates/system/breadcrumb.vars.php | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/templates/system/breadcrumb.vars.php b/templates/system/breadcrumb.vars.php
index a4c784d..e84f298 100644
--- a/templates/system/breadcrumb.vars.php
+++ b/templates/system/breadcrumb.vars.php
@@ -15,4 +15,17 @@ function bootstrap_preprocess_breadcrumb(&$variables) {
   if (!$show_breadcrumb_home) {
     array_shift($breadcrumb);
   }
+  
+  if (theme_get_setting('bootstrap_breadcrumb_title') && !empty($breadcrumb)) {
+    $item = menu_get_item();
+
+    $page_title = !empty($item['tab_parent']) ? check_plain($item['title']) : drupal_get_title();
+    if (!empty($page_title)) {
+      $breadcrumb[] = array(
+        // If we are on a non-default tab, use the tab's title.
+        'data' => $page_title,
+        'class' => array('active'),
+      );
+    }
+  }
 }
-- 
1.7.11.1

