From d2871d27a75bc4461f48fe9c37451175b61117ba Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 2 May 2014 13:30:44 -0500
Subject: [PATCH] pjax: Restore proper page titles

---
 include/staff/header.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/staff/header.inc.php b/include/staff/header.inc.php
index 4bbd8fa2c..dcea698c4 100644
--- a/include/staff/header.inc.php
+++ b/include/staff/header.inc.php
@@ -74,7 +74,8 @@
     foreach ($ost->getExtraHeaders() as $h) {
         if (strpos($h, '<script ') !== false)
             echo $h;
-    }
+    } ?>
+    <title><?php echo ($ost && ($title=$ost->getPageTitle()))?$title:'osTicket :: Staff Control Panel'; ?></title><?php
 } # endif X_PJAX ?>
     <ul id="nav">
 <?php include STAFFINC_DIR . "templates/navigation.tmpl.php"; ?>
-- 
GitLab