has been blocked more than 10 times. Patch by Matt Johnston.
* (bug 12678) Skins don't show Upload link if the user isn't allowed to upload.
* Fixed incorrect usage of DB_LAST in Special:Export. Deprecated DB_LAST.
+* (bug 15642) Blocked sysops can no longer block other users
=== API changes in 1.14 ===
# Username block
if ( $wgSysopUserBans ) {
$user = User::newFromName( $this->BlockAddress );
+ if ( $wgUser->isBlocked() && ( $wgUser->getId !== $user->getId() ) ) {
+ return array( 'cant-block-while-blocked' );
+ }
if( !is_null( $user ) && $user->getId() ) {
# Use canonical name
$userId = $user->getId();
'sorbsreason' => 'Your IP address is listed as an open proxy in the DNSBL used by {{SITENAME}}.',
'sorbs_create_account_reason' => 'Your IP address is listed as an open proxy in the DNSBL used by {{SITENAME}}.
You cannot create an account',
+'cant-block-while-blocked' => 'Error: You cannot block other users while you are blocked.',
# Developer tools
'lockdb' => 'Lock database',