From a4e6ed10f6396d2ea8dd6dfd8f8bc0a05f484ade Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 05 May 2008 14:21:25 -0400
Subject: [PATCH] - fixed setting pagetitle in ajax calls

---
 program/include/rcube_json_output.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php
index 19a4543..a633f85 100644
--- a/program/include/rcube_json_output.php
+++ b/program/include/rcube_json_output.php
@@ -64,7 +64,8 @@
      */
     public function set_pagetitle($title)
     {
-        // ignore
+	$name = $this->config->get('product_name');
+	$this->command('set_pagetitle', JQ(empty($name) ? $title : $name.' :: '.$title));
     }
 
     /**
@@ -232,7 +233,7 @@
                 implode(',', $args)
             );
         }
-        
+
         return $out;
     }
 }

--
Gitblit v1.9.1