only distinguish between title and crumb for project pages

Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
Change-Id: I38fec70924269fd5f989c0812b9a1befc812877d
diff --git a/system/breadcrumbs.class.php b/system/breadcrumbs.class.php
index d99bfa9..a9628e0 100644
--- a/system/breadcrumbs.class.php
+++ b/system/breadcrumbs.class.php
@@ -145,6 +145,7 @@
     // Default: Home
     $this->addCrumb("Home", "/", "_self");
 
+    $is_project_page = FALSE;
     if (isset($_SERVER['REQUEST_URI'])) {
       // http://www.eclipse.org/newsgroups/test.php
       // Array ( [0] => [1] => newsgroups [2] => test.php )
@@ -157,6 +158,7 @@
       else {
         // Not pre-defined Foundation page, must be a project page
         // /xtext/file.php => Home > Projects > xtext > $pageTitle
+        $is_project_page = TRUE;
         $this->addCrumb("Projects", $this->www_prefix . "/projects/", "_self");
         $this->addCrumb($items[1], $this->www_prefix . "/" . $items[1], "_self");
       }
@@ -195,7 +197,7 @@
 
         // Bug 442449 - Distinguish between page title and breadcrumbs menu
         // Remove project name from $title
-        if ($this->getCrumbCount() > 1) {
+        if ($this->getCrumbCount() > 1 && $is_project_page) {
           $pattern = '/^' . $this->getCrumbAt($this->getCrumbCount() - 1)->getText() . " /i";
           $title = preg_replace($pattern, '', $title);
         }