summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-12-13 20:26:16 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-12-13 20:26:16 +0100
commitc5983034b0e6d9d91733fa0496da56614256afc3 (patch)
treea578a5ef048ef45a324fd6c4164e70ef6ed6f15d /feed.php
parent64e9144a8259bc8c22ee83e16b2e490c031b6bab (diff)
downloadrpg-c5983034b0e6d9d91733fa0496da56614256afc3.tar.gz
rpg-c5983034b0e6d9d91733fa0496da56614256afc3.tar.bz2
fix for feed whith Apache auth and no ACL #981
darcs-hash:20061213192616-7ad00-526c26ebf249c07c6188f0062e928d70c7ee89db.gz
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/feed.php b/feed.php
index f477de31b..298c20a65 100644
--- a/feed.php
+++ b/feed.php
@@ -161,7 +161,7 @@ function rssRecentChanges(&$rss,$num,$ltype,$ns,$minor){
$user = @$recent['user']; // the @ spares time repeating lookup
$item->author = '';
- if($user){
+ if($user && $conf['useacl']){
$userInfo = $auth->getUserData($user);
$item->author = $userInfo['name'];
if($guardmail) {
@@ -170,6 +170,10 @@ function rssRecentChanges(&$rss,$num,$ltype,$ns,$minor){
}else{
$item->authorEmail = $userInfo['mail'];
}
+ }elseif($user){
+ // this happens when no ACL but some Apache auth is used
+ $item->author = $user;
+ $item->authorEmail = $user.'@'.$recent['ip'];
}else{
$item->authorEmail = 'anonymous@'.$recent['ip'];
}