Author: Nx.devnull
Description:
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';
}
Version: 1.15.x
Severity: enhancement
Attached: