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

always show IP addresses to managers

darcs-hash:20081110003321-7ad00-79f0d66e0a7094911067555e055d63f8dfbfd46d.gz
parent 155a9233
No related branches found
No related tags found
No related merge requests found
...@@ -525,6 +525,9 @@ function html_revisions($first=0){ ...@@ -525,6 +525,9 @@ function html_revisions($first=0){
$form->addElement(form_makeOpenTag('span', array('class' => 'user'))); $form->addElement(form_makeOpenTag('span', array('class' => 'user')));
if($info['user']){ if($info['user']){
$form->addElement(editorinfo($info['user'])); $form->addElement(editorinfo($info['user']));
if(auth_ismanager()){
$form->addElement(' ('.$info['ip'].')');
}
}else{ }else{
$form->addElement($info['ip']); $form->addElement($info['ip']);
} }
...@@ -634,6 +637,9 @@ function html_recent($first=0){ ...@@ -634,6 +637,9 @@ function html_recent($first=0){
$form->addElement(form_makeOpenTag('span', array('class' => 'user'))); $form->addElement(form_makeOpenTag('span', array('class' => 'user')));
if($recent['user']){ if($recent['user']){
$form->addElement(editorinfo($recent['user'])); $form->addElement(editorinfo($recent['user']));
if(auth_ismanager()){
$form->addElement(' ('.$recent['ip'].')');
}
}else{ }else{
$form->addElement($recent['ip']); $form->addElement($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