summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'];
}
/**