diff options
author | Andy Webber <dokuwiki@andywebber.com> | 2008-10-01 17:29:14 +0200 |
---|---|---|
committer | Andy Webber <dokuwiki@andywebber.com> | 2008-10-01 17:29:14 +0200 |
commit | dc58b6f4952c9a966ba23101144f00d378746a17 (patch) | |
tree | 8cb135a4c3ad2979c2e90169932cdb8dab9fcc99 /inc/html.php | |
parent | 5babd79b8d25882c3af5dccc15157e728e5bda9e (diff) | |
download | rpg-dc58b6f4952c9a966ba23101144f00d378746a17.tar.gz rpg-dc58b6f4952c9a966ba23101144f00d378746a17.tar.bz2 |
editor_info_patch
At present, DW shows the username on the bottom left under "logged in as", and the login name for "last modified", "locked by" and under
revisions/recent changes. In a corporate environment, particularly when integrated with a Single Sign-On system, the login name may be somewhat
unfriendly. This patch makes the "logged in as" the same as the value used elsewhere and also allows an admin to decide whether it should be the
login name, username or e-mail address that is displayed. The e-mail address may also, optionally, be a mailto: link. E-mail addresses are
obfuscated according to the 'mailguard' setting. The default behaviour is to show the login name which is no change from previous behaviour for the
"last modified"/"locked by"/revisions/"recent changes", but is a change for the "logged in as".
darcs-hash:20081001152914-6ad63-9cd7174068ac55de381f1318a4401f8c51de5b0c.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/html.php b/inc/html.php index 24b811d29..e7525ae2d 100644 --- a/inc/html.php +++ b/inc/html.php @@ -438,7 +438,7 @@ function html_revisions($first=0){ print ' – '; print htmlspecialchars($INFO['sum']); print ' <span class="user">'; - print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):htmlspecialchars($INFO['editor']); + print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):editorinfo($INFO['editor']); print '</span> '; print '('.$lang['current'].')'; @@ -482,7 +482,7 @@ function html_revisions($first=0){ print htmlspecialchars($info['sum']); print ' <span class="user">'; if($info['user']){ - print htmlspecialchars($info['user']); + print editorinfo($info['user']); }else{ print $info['ip']; } @@ -576,7 +576,7 @@ function html_recent($first=0){ print ' <span class="user">'; if($recent['user']){ - print htmlspecialchars($recent['user']); + print editorinfo($recent['user']); }else{ print $recent['ip']; } |