diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-12-13 20:26:16 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-12-13 20:26:16 +0100 |
commit | c5983034b0e6d9d91733fa0496da56614256afc3 (patch) | |
tree | a578a5ef048ef45a324fd6c4164e70ef6ed6f15d /feed.php | |
parent | 64e9144a8259bc8c22ee83e16b2e490c031b6bab (diff) | |
download | rpg-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.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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']; } |