From ae23eaf60beeee40e3f2f33f2d3e1e6a302e40bc Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 29 May 2007 21:04:16 +0000 Subject: [PATCH] Make sure BlockHideName really defaults to 0, not false. Fixes bug 10007. --- RELEASE-NOTES | 1 + includes/SpecialBlockip.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.20.1