Package: dokuwiki
Version: 0.0.20090214b-3
Severity: important
Hello,
Dokuwiki has a nice function editorinfo() in inc/common.php, which is used
whenever a user name is to be rendered... except in feed.php, and I think
that users who do not want their real name shown on the normal web output
do not want it displayed in feeds either.
Attached is a quick patch that fixes this problem.
Cheers,
Richard
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-486
Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dokuwiki depends on:
ii debconf [debconf-2.0] 1.5.27 Debian configuration management sy
ii libphp-simplepie 1.1.3-1 RSS and Atom feed parsing in PHP
ii php-geshi 1.0.8.4-1 Generic Syntax Highlighter
ii php5 5.2.11.dfsg.1-1 server-side, HTML-embedded scripti
ii ucf 3.0022 Update Configuration File: preserv
Versions of packages dokuwiki recommends:
ii imagemagick 7:6.5.5.3-1 image manipulation programs
ii php5-cli 5.2.11.dfsg.1-1 command-line interpreter for the p
ii php5-gd 5.2.11.dfsg.1-1 GD module for php5
dokuwiki suggests no packages.
-- debconf information:
dokuwiki/system/accessible: localhost only
* dokuwiki/webservers: apache2
* dokuwiki/system/documentroot: /wiki
dokuwiki/system/localnet: 10.0.0.0/24
* dokuwiki/system/purgepages: true
--- /usr/share/dokuwiki/feed.php 2009-02-14 13:13:24.000000000 +0100
+++ feed.php 2009-10-04 00:40:06.000000000 +0200
@@ -236,7 +236,7 @@
$item->author = '';
if($user && $conf['useacl'] && $auth){
$userInfo = $auth->getUserData($user);
- $item->author = $userInfo['name'];
+ $item->author = editorinfo($user);
if($userInfo && !$opt['guardmail']){
$item->authorEmail = $userInfo['mail'];
}else{
@@ -245,7 +245,7 @@
}
}elseif($user){
// this happens when no ACL but some Apache auth is used
- $item->author = $user;
+ $item->author = editorinfo($user);
$item->authorEmail = $user.'@'.$recent['ip'];
}else{
$item->authorEmail = 'anonymous@'.$recent['ip'];