For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
+if( $target == $wgUser->getName()
> var_dump( "0" == "00" );
Although it is ignored in html, I see no reason to use two spaces after a dot.
Fixed in r94235. All comments are resolved now.
I can't figure out how to block my self now. I get the warning, but don't see any way to say "yes as a matter of fact I really do want to block myself"
It should work if you just submit the form again, in the same way as if you try and block a user who is already blocked. Does that not work for you?
no, it doesn't.
Should be fixed in r85166.
$fields['AlreadyBlocked']['default'] = htmlspecialchars( $block->getTarget() );
What does the htmlspecialchars do here?
The htmlspecialchars are unnecessary.
HTMLForm does its own HTML escaping, unless you specifically specify for it to do otherwise.
Removed in r93233.