From 7578e428cab62ff1d0c90e7c1d479bf498c0f1bd Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 3 Aug 2011 11:35:36 +0000 Subject: - Display current user name in page title if devel_mode=true git-svn-id: https://svn.roundcube.net/trunk@5013 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_json_output.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_json_output.php') diff --git a/roundcubemail/program/include/rcube_json_output.php b/roundcubemail/program/include/rcube_json_output.php index efb672888..40a7b2a5e 100644 --- a/roundcubemail/program/include/rcube_json_output.php +++ b/roundcubemail/program/include/rcube_json_output.php @@ -75,7 +75,11 @@ class rcube_json_output */ public function set_pagetitle($title) { - $name = $this->config->get('product_name'); + if ($this->config->get('devel_mode') && !empty($_SESSION['username'])) + $name = $_SESSION['username']; + else + $name = $this->config->get('product_name'); + $this->command('set_pagetitle', empty($name) ? $title : $name.' :: '.$title); } -- cgit v1.2.3