diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-04 00:34:12 +0100 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-02-04 00:34:12 +0100 |
commit | 60a396c8ac50f17c2e3f43a9533af86cf6976976 (patch) | |
tree | 9cbe194c0854731f2f7f5e4d96444d672b6e6a6c /inc/template.php | |
parent | 69736a139a14ee8cb2a439b34d64f964a0519a03 (diff) | |
download | rpg-60a396c8ac50f17c2e3f43a9533af86cf6976976.tar.gz rpg-60a396c8ac50f17c2e3f43a9533af86cf6976976.tar.bz2 |
wrap userlink building with event.
Implements an event which can modify the link below usernames, and the
displayed user name.
When no name supplied, the name of currently logged-in user is used.
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php index 0a6a9e4aa..ba7279636 100644 --- a/inc/template.php +++ b/inc/template.php @@ -885,9 +885,8 @@ function tpl_youarehere($sep = ' » ') { */ function tpl_userinfo() { global $lang; - global $INFO; if(isset($_SERVER['REMOTE_USER'])) { - print $lang['loggedinas'].': <bdi>'.hsc($INFO['userinfo']['name']).'</bdi> (<bdi>'.hsc($_SERVER['REMOTE_USER']).'</bdi>)'; + print $lang['loggedinas'].': '.userinfo(); return true; } return false; |