From: Aaron Schulz Date: Mon, 6 Oct 2008 23:21:30 +0000 (+0000) Subject: Query and UI cleanup X-Git-Tag: 1.31.0-rc.0~44863 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=ac809608050f6944c0608702fe830a91633d8493;p=lhc%2Fweb%2Fwiklou.git Query and UI cleanup --- diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index fb12b9c3ce..242b6cc37d 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -269,7 +269,7 @@ class IPUnblockForm { $conds['ipb_expiry'] = 'infinity'; } if( $this->hideaddressblocks ) { - $conds[] = "ipb_range_end > ipb_range_start"; + $conds[] = "ipb_user != 0 OR ipb_range_end > ipb_range_start"; } $pager = new IPBlocklistPager( $this, $conds ); @@ -285,6 +285,7 @@ class IPUnblockForm { $wgOut->addHTML( $this->searchForm() ); $wgOut->addWikiMsg( 'ipblocklist-no-results' ); } else { + $wgOut->addHTML( $this->searchForm() . $this->showhideLinks() ); $wgOut->addWikiMsg( 'ipblocklist-empty' ); } }