From e535b1f0027c52ea72f3c8cd7c8b735fdc1c73cb Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 11 Feb 2012 10:37:50 +0000 Subject: [PATCH] only show samefag ID if showing regular IDs --- ext/comment/theme.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/comment/theme.php b/ext/comment/theme.php index e4b63f04..acdabed2 100644 --- a/ext/comment/theme.php +++ b/ext/comment/theme.php @@ -171,14 +171,14 @@ class CommentListTheme extends Themelet { $anoncode2 = ""; if($this->show_anon_id) { $anoncode = ''.$this->anon_id.''; - } - if($user->can("view_ip")) { - #$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'"; - if(!array_key_exists($comment->poster_ip, $this->anon_map)) { - $this->anon_map[$comment->poster_ip] = $this->anon_id; - } - if($this->anon_map[$comment->poster_ip] != $this->anon_id) { - $anoncode2 = '('.$this->anon_map[$comment->poster_ip].')'; + if($user->can("view_ip")) { + #$style = " style='color: ".$this->get_anon_colour($comment->poster_ip).";'"; + if(!array_key_exists($comment->poster_ip, $this->anon_map)) { + $this->anon_map[$comment->poster_ip] = $this->anon_id; + } + if($this->anon_map[$comment->poster_ip] != $this->anon_id) { + $anoncode2 = '('.$this->anon_map[$comment->poster_ip].')'; + } } } $h_userlink = "" . $h_name . $anoncode . $anoncode2 . "";