Anonym statt IP anzeigen

This commit is contained in:
root 2017-09-27 23:47:28 +02:00
parent cb41f491e8
commit 11d9457338
2 changed files with 181 additions and 177 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

View File

@ -102,8 +102,12 @@ function getcommentsAll( $input, $args, $parser ) {
'" title="' . $title->getText() . '" rel="nofollow">' .
$commentsAllTemp['username'] . '</a>';
//avatar = new wAvatar( $commentsAllTemp['userid'], 's' );
$commentIcon = 'extensions/Comments/images/default_s.gif';
$commentIcon = 'extensions/Comments/resources/images/default_s.gif';
if ( filter_var($commentPoster_Display, FILTER_VALIDATE_IP) !== false ){
// Wert ist eine IP-Adresse
$commentPoster = "Anonym";
}
/*
$commentPoster_Display = wfMsg( 'comment-anon-name' );
$commentPoster = wfMsg( 'comment-anon-name' );