https://bugzilla.wikimedia.org/show_bug.cgi?id=22922
Summary: Aborting a block using BlockIp hook shows
<hookaborted> on the block form
Product: MediaWiki
Version: 1.15.1
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Blocking
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=7237)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=7237)
Screenshot
The following simple extension will cancel the block, and the message "Block
aborted" will be displayed at the top of the block form. However a large red
<hookaborted> message will also be displayed, below blockiptext. The latter
shouldn't be shown if the extension already returns an error message of its
own, and should be something more user-friendly otherwise.
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
$wgHooks['BlockIp'][] = 'BlockIpTest';
function BlockIpTest( &$ban, &$user ) {
return 'Block aborted';
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l