Index: trunk/extensions/GlobalBlocking/GlobalBlocking.i18n.php |
— | — | @@ -54,6 +54,7 @@ |
55 | 55 | 'globalblocking-list-whitelisted' => 'locally disabled by $1: $2', |
56 | 56 | 'globalblocking-list-whitelist' => 'local status', |
57 | 57 | 'globalblocking-list-modify' => 'modify', |
| 58 | + 'globalblocking-list-noresults' => 'The requested IP address is not blocked.', |
58 | 59 | 'globalblocking-goto-block' => 'Globally block an IP address', |
59 | 60 | 'globalblocking-goto-unblock' => 'Remove a global block', |
60 | 61 | 'globalblocking-goto-status' => 'Change local status for a global block', |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockList.php |
— | — | @@ -102,10 +102,15 @@ |
103 | 103 | } |
104 | 104 | |
105 | 105 | $pager = new GlobalBlockListPager( $this, $conds ); |
106 | | - |
107 | | - $wgOut->addHTML( $pager->getNavigationBar() . |
108 | | - Xml::tags( 'ul', null, $pager->getBody() ) . |
109 | | - $pager->getNavigationBar() ); |
| 106 | + $body = $pager->getBody(); |
| 107 | + if( $body != '' ) { |
| 108 | + $wgOut->addHTML( $pager->getNavigationBar() . |
| 109 | + Html::rawElement( 'ul', array(), $body ) . |
| 110 | + $pager->getNavigationBar() ); |
| 111 | + } else { |
| 112 | + $wgOut->wrapWikiMsg( "<div class='mw-globalblocking-noresults'>\n$1</div>\n", |
| 113 | + array( 'globalblocking-list-noresults' ) ); |
| 114 | + } |
110 | 115 | } |
111 | 116 | |
112 | 117 | function loadParameters() { |