summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2008-10-12 15:03:04 +0200
committerMichael Klier <chi@chimeric.de>2008-10-12 15:03:04 +0200
commit3e63b73bba7c0924117e243a94c3e4cdb3d084f6 (patch)
tree77a75c9755a189a6cf0192767f34bf27d55ab63c
parent5f9bc506f93e7c318cb88e19ae33496059e66b06 (diff)
downloadrpg-3e63b73bba7c0924117e243a94c3e4cdb3d084f6.tar.gz
rpg-3e63b73bba7c0924117e243a94c3e4cdb3d084f6.tar.bz2
fix for FS#1364 show Fullname and username in tpl_userinfo()
darcs-hash:20081012130304-23886-8836b5f5ad341de277bb23c2f2373eb409dba5c9.gz
-rw-r--r--inc/template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 3f7badf93..0b6e245ac 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -903,8 +903,9 @@ function tpl_youarehere($sep=' &raquo; '){
*/
function tpl_userinfo(){
global $lang;
+ global $INFO;
if($_SERVER['REMOTE_USER']){
- print $lang['loggedinas'].': '.editorinfo($_SERVER['REMOTE_USER']);
+ print $lang['loggedinas'].': '.$INFO['userinfo']['name'].' ('.$_SERVER['REMOTE_USER'].')';
return true;
}
return false;