From: Greg Sabino Mullane Date: Tue, 29 May 2007 21:04:16 +0000 (+0000) Subject: Make sure BlockHideName really defaults to 0, not false. Fixes bug 10007. X-Git-Tag: 1.31.0-rc.0~52775 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=ae23eaf60beeee40e3f2f33f2d3e1e6a302e40bc;p=lhc%2Fweb%2Fwiklou.git Make sure BlockHideName really defaults to 0, not false. Fixes bug 10007. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2bbdb87513..5aa8dd5280 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -91,6 +91,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 908) Unexistent special pages now generate a red link. * (bug 7899) Added \hline and \vline to the list of allowed TeX commands * (bug 7993) support mathematical symbol classes +* (bug 10007) Allow Block IP to work with Postgrs again. == MediaWiki API changes since 1.10 == diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 1df8a71ec1..ce3618408e 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -61,7 +61,7 @@ class IPBlockForm { $this->BlockCreateAccount = $wgRequest->getBool( 'wpCreateAccount', $byDefault ); $this->BlockEnableAutoblock = $wgRequest->getBool( 'wpEnableAutoblock', $byDefault ); # Re-check user's rights to hide names, very serious, defaults to 0 - $this->BlockHideName = $wgRequest->getBool( 'wpHideName', 0 ) && $wgUser->isAllowed( 'hideuser' ); + $this->BlockHideName = ( $wgRequest->getBool( 'wpHideName', 0 ) && $wgUser->isAllowed( 'hideuser' ) ) ? 1 : 0; } function showForm( $err ) {