Skip to content
Snippets Groups Projects
Commit c5983034 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix for feed whith Apache auth and no ACL #981

darcs-hash:20061213192616-7ad00-526c26ebf249c07c6188f0062e928d70c7ee89db.gz
parent 64e9144a
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment