comments: don't interpolate IP into anonymous user's "name"

If an admin wants the IP in the comment display template they can still
get it (the default template shows it).
master
Simon McVittie 2008-12-11 02:29:11 +00:00
parent c038734986
commit 3560460eb6
1 changed files with 3 additions and 5 deletions

View File

@ -89,12 +89,10 @@ sub preprocess { # {{{
($commentauthorurl, $commentauthor) = ($commentauthorurl, $commentauthor) =
linkuser($params{username}); linkuser($params{username});
} }
elsif (defined $params{ip}) {
$commentip = $params{ip};
$commentauthor = sprintf(
gettext("Anonymous (IP: %s)"), $params{ip});
}
else { else {
if (defined $params{ip}) {
$commentip = $params{ip};
}
$commentauthor = gettext("Anonymous"); $commentauthor = gettext("Anonymous");
} }