summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-03-10 23:58:18 +0100
committerGerrit Uitslag <klapinklapin@gmail.com>2014-03-10 23:58:18 +0100
commit30f6ec4bf42de282d69f87494819f0599a1fae82 (patch)
treed430b9c9d146b8a5ee4da3bf542ca3d8d24a051b /inc/common.php
parentf97db66038968542deefbf9817a3dd49b67b1904 (diff)
downloadrpg-30f6ec4bf42de282d69f87494819f0599a1fae82.tar.gz
rpg-30f6ec4bf42de282d69f87494819f0599a1fae82.tar.bz2
update usage in userlink
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php
index 143ad8923..d971986df 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1475,6 +1475,8 @@ function userinfo($username = null) {
global $conf, $INFO;
/** @var DokuWiki_Auth_Plugin $auth */
global $auth;
+ /** @var Input $INPUT */
+ global $INPUT;
// prepare initial event data
$data = array(
@@ -1493,8 +1495,8 @@ function userinfo($username = null) {
'userinfo' => ''
);
if($username === null) {
- $data['username'] = $username = $_SERVER['REMOTE_USER'];
- $data['name'] = '<bdi>' . hsc($INFO['userinfo']['name']) . '</bdi> (<bdi>' . hsc($_SERVER['REMOTE_USER']) . '</bdi>)';
+ $data['username'] = $username = $INPUT->server->str('REMOTE_USER');
+ $data['name'] = '<bdi>' . hsc($INFO['userinfo']['name']) . '</bdi> (<bdi>' . hsc($INPUT->server->str('REMOTE_USER')) . '</bdi>)';
}
$evt = new Doku_Event('COMMON_USER_LINK', $data);