From: Platonides Date: Wed, 21 Apr 2010 17:33:17 +0000 (+0000) Subject: (bug 16487) Do not display the fake Anonymous user account used by Postgres on Specia... X-Git-Tag: 1.31.0-rc.0~37040 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=86f780b9241a646706de259790bba6b438be4922;p=lhc%2Fweb%2Fwiklou.git (bug 16487) Do not display the fake Anonymous user account used by Postgres on Special:Listusers. It will surely still produce strange results on many more places, though. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6803516f1b..cb665453f2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -121,6 +121,8 @@ in a negative namespace (which is invalid). * (bug 23080) New usernames now limited to 235 bytes so that custom skin files work. * (bug 23075) Correct MediaTransformError default width in gallery. +* (bug 16487) The Anonymous user account used on Postgres is no longer + displayed on Special:Listusers. === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index bdb59980c9..0ccd44bf51 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -120,6 +120,9 @@ class UsersPager extends AlphabeticPager { function formatRow( $row ) { global $wgLang; + if ($row->user_id == 0) #Bug 16487 + return ''; + $userPage = Title::makeTitle( NS_USER, $row->user_name ); $name = $this->getSkin()->link( $userPage, htmlspecialchars( $userPage->getText() ) );