Make sure BlockHideName really defaults to 0, not false. Fixes bug 10007.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 29 May 2007 21:04:16 +0000 (21:04 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Tue, 29 May 2007 21:04:16 +0000 (21:04 +0000)
RELEASE-NOTES
includes/SpecialBlockip.php

index 2bbdb87..5aa8dd5 100644 (file)
@@ -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 ==
 
index 1df8a71..ce36184 100644 (file)
@@ -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 ) {