Page MenuHomePhabricator

patch.patch

Authored By
bzimport
Nov 21 2014, 10:54 PM
Size
1 KB
Referenced Files
None
Subscribers
None

patch.patch

Index: includes/specials/SpecialBlockip.php
===================================================================
--- includes/specials/SpecialBlockip.php (revision 57369)
+++ includes/specials/SpecialBlockip.php (working copy)
@@ -454,7 +454,7 @@
# If the name was hidden and the blocking user cannot hide
# names, then don't allow any block changes...
if( $currentBlock->mHideName && !$wgUser->isAllowed('hideuser') ) {
- return array( 'hookaborted' );
+ return array( 'cant-see-hidden-user' );
}
$currentBlock->delete();
$block->insert();
Index: languages/messages/MessagesEn.php
===================================================================
--- languages/messages/MessagesEn.php (revision 57369)
+++ languages/messages/MessagesEn.php (working copy)
@@ -3001,6 +3001,8 @@
'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' => 'You cannot block other users while you are blocked.',
+'cant-see-hidden-user' => 'The user you are trying to block has already been blocked and hidden. Since you do not have the hideuser right,
+you cannot see or edit the user\'s block.',
# Developer tools
'lockdb' => 'Lock database',
Index: maintenance/language/messages.inc
===================================================================
--- maintenance/language/messages.inc (revision 57369)
+++ maintenance/language/messages.inc (working copy)
@@ -2024,6 +2024,7 @@
'sorbsreason',
'sorbs_create_account_reason',
'cant-block-while-blocked',
+ 'cant-see-hidden-user'
),
'developertools' => array(
'lockdb',

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5854
Default Alt Text
patch.patch (1 KB)

Event Timeline