summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-03 11:35:36 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-03 11:35:36 +0000
commit7578e428cab62ff1d0c90e7c1d479bf498c0f1bd (patch)
tree06637e1f37d73d3254155c3d3e933236a02daa6f /roundcubemail/program/include/rcube_template.php
parent986843fc60b3e4afa39712d257e37cb804dfd59d (diff)
- 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
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index a672c5058..6228e7659 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/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);
}