http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94235
Revision: 94235
Author: catrope
Date: 2011-08-11 10:33:22 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
Followup r85025, r85166, r93233: use strict comparison per CR comment, because
"0" != "00" is false
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialBlock.php
Modified: trunk/phase3/includes/specials/SpecialBlock.php
===================================================================
--- trunk/phase3/includes/specials/SpecialBlock.php 2011-08-11 09:40:39 UTC
(rev 94234)
+++ trunk/phase3/includes/specials/SpecialBlock.php 2011-08-11 10:33:22 UTC
(rev 94235)
@@ -555,7 +555,7 @@
# to do this for IPs, but it's pretty unlikely they'd
ever get the 'block'
# permission anyway, although the code does allow for it
if( $target === $wgUser->getName() &&
- ( $data['PreviousTarget'] != $data['Target'] ||
!$data['Confirm'] ) )
+ ( $data['PreviousTarget'] !== $data['Target']
|| !$data['Confirm'] ) )
{
return array( 'ipb-blockingself' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs