From 882c25f63e9d1ed81931368f110eaa710cb3a720 Mon Sep 17 00:00:00 2001
From: John McCormick <jam@neardark.com>
Date: Thu, 15 Jan 2015 10:59:34 -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..108cf61 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

