diff options
author | alecpl <alec@alec.pl> | 2011-08-03 11:35:36 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-08-03 11:35:36 +0000 |
commit | 159763861e15fce2006b1830ebdb646c5ad52d0c (patch) | |
tree | 9166005ed7e1a0931dcfb32d85a44427c065bef7 /program/include/rcube_json_output.php | |
parent | 359e19a19dd45d64d14c7b29461f0fbe4f8a50bd (diff) |
- Display current user name in page title if devel_mode=true
Diffstat (limited to 'program/include/rcube_json_output.php')
-rw-r--r-- | program/include/rcube_json_output.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_json_output.php b/program/include/rcube_json_output.php index efb672888..40a7b2a5e 100644 --- a/program/include/rcube_json_output.php +++ b/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); } |