* Styled #mw-data-after-content in cologneblue.css to match the rest of the font (bug 17110)
* (bug 7556) Time zone names in signatures lack i18n
* (bug 3311) Automatic category redirects
+* (bug 17236) Suppress 'watch user page link' for IP range blocks
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
}
wfRunHooks('BlockIpComplete', array($block, $wgUser));
- if ( $this->BlockWatchUser ) {
+ if ( $this->BlockWatchUser &&
+ # Only show watch link when this is no range block
+ $block->mRangeStart == $block->mRangeEnd) {
$wgUser->addWatch ( Title::makeTitle( NS_USER, $this->BlockAddress ) );
}
var addy = target.value;
var isEmpty = addy.match(/^\s*$/);
var isIp = addy.match(/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|:(:[0-9A-Fa-f]{1,4}){1,7}|[0-9A-Fa-f]{1,4}(:{1,2}[0-9A-Fa-f]{1,4}|::$){1,7})(\/\d+)?$/);
+ var isIpRange = isIp && addy.match(/\/\d+$/);
var anonymousRow = document.getElementById('wpAnonOnlyRow');
if( anonymousRow ) {
if( hideuserRow ) {
hideuserRow.style.display = isIp && !isEmpty ? 'none' : '';
}
+
+ var watchuserRow = document.getElementById('wpEnableWatchUser');
+ if( watchuserRow ) {
+ watchuserRow.style.display = isIpRange && !isEmpty ? 'none' : '';
+ }
}