summaryrefslogtreecommitdiff
path: root/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-03 11:35:36 +0000
committeralecpl <alec@alec.pl>2011-08-03 11:35:36 +0000
commit159763861e15fce2006b1830ebdb646c5ad52d0c (patch)
tree9166005ed7e1a0931dcfb32d85a44427c065bef7 /program/include/rcube_template.php
parent359e19a19dd45d64d14c7b29461f0fbe4f8a50bd (diff)
- Display current user name in page title if devel_mode=true
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-xprogram/include/rcube_template.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index a672c5058..6228e7659 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -748,7 +748,12 @@ class rcube_template extends rcube_html_page
$content = Q($this->get_pagetitle());
}
else if ($object == 'pagetitle') {
- $title = !empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '';
+ if (!empty($this->config['devel_mode']) && !empty($_SESSION['username']))
+ $title = $_SESSION['username'].' :: ';
+ else if (!empty($this->config['product_name']))
+ $title = $this->config['product_name'].' :: ';
+ else
+ $title = '';
$title .= $this->get_pagetitle();
$content = Q($title);
}