summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Grimm <matthiasgrimm@users.sourceforge.net>2005-05-05 14:24:26 +0200
committerMatthias Grimm <matthiasgrimm@users.sourceforge.net>2005-05-05 14:24:26 +0200
commita2488c3cfe03f93629eef8612bb389a6e7e3eff9 (patch)
tree8afed8bb7fd78e396d967721984e1afce883f233
parent8c6fe7beed054235cfe546f075014df4bfdace0b (diff)
downloadrpg-a2488c3cfe03f93629eef8612bb389a6e7e3eff9.tar.gz
rpg-a2488c3cfe03f93629eef8612bb389a6e7e3eff9.tar.bz2
logininfo_fullname
This patch changes the userinfo display in the bottom left edge of the screen, right above the bottom bar. If the user is logged in his full name will be displayed instead of showing his user name. darcs-hash:20050505122426-4145d-cdbde61bf70423a5e22bbf5f3f126ba96d4d2ca1.gz
-rw-r--r--inc/template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 5ab8ea6a5..4c782ace9 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -410,6 +410,7 @@ function tpl_youarehere(){
/**
* Print info if the user is logged in
+ * and show full name in that case
*
* Could be enhanced with a profile link in future?
*
@@ -417,8 +418,9 @@ function tpl_youarehere(){
*/
function tpl_userinfo(){
global $lang;
+ global $INFO;
if($_SERVER['REMOTE_USER'])
- print $lang['loggedinas'].': '.$_SERVER['REMOTE_USER'];
+ print $lang['loggedinas'].': '.$INFO['userinfo']['name'];
}
/**