| Index: trunk/extensions/AbuseFilter/special/SpecialAbuseLog.php |
| — | — | @@ -203,9 +203,13 @@ |
| 204 | 204 | |
| 205 | 205 | $pager = new AbuseLogPager( $this, $conds ); |
| 206 | 206 | |
| 207 | | - $wgOut->addHTML( $pager->getNavigationBar() . |
| 208 | | - Xml::tags( 'ul', null, $pager->getBody() ) . |
| 209 | | - $pager->getNavigationBar() ); |
| | 207 | + if( $pager->getResult()->numRows() !== 0 ) { |
| | 208 | + $wgOut->addHTML( $pager->getNavigationBar() . |
| | 209 | + Xml::tags( 'ul', null, $pager->getBody() ) . |
| | 210 | + $pager->getNavigationBar() ); |
| | 211 | + } else { |
| | 212 | + $wgOut->addWikiMsg( 'abusefilter-log-noresults' ); |
| | 213 | + } |
| 210 | 214 | } |
| 211 | 215 | |
| 212 | 216 | function showDetails( $id ) { |
| Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
| — | — | @@ -275,7 +275,7 @@ |
| 276 | 276 | 'abusefilter-edit-builder-funcs-lcase' => 'To lower case (lcase)', |
| 277 | 277 | 'abusefilter-edit-builder-funcs-ccnorm' => 'Normalise confusable characters (ccnorm)', |
| 278 | 278 | 'abusefilter-edit-builder-funcs-rmdoubles' => 'Remove double-characters (rmdoubles)', |
| 279 | | - 'abusefilter-edit-builder-funcs-specialratio' => 'Special characters / total characters (specialratio)', |
| | 279 | + 'abusefilter-edit-builder-funcs-specabuialratio' => 'Special characters / total characters (specialratio)', |
| 280 | 280 | 'abusefilter-edit-builder-funcs-norm' => 'Normalise (norm)', |
| 281 | 281 | 'abusefilter-edit-builder-funcs-count' => 'Number of times string X appears in string Y (count)', |
| 282 | 282 | 'abusefilter-edit-builder-funcs-rcount' => 'Number of times regex X appears in string Y (rcount)', |
| — | — | @@ -451,6 +451,7 @@ |
| 452 | 452 | 'abusefilter-log-header' => "This log shows a summary of changes made to filters. |
| 453 | 453 | For full details, see [[Special:AbuseFilter/history|the list]] of recent filter changes.", |
| 454 | 454 | 'abusefilter-log-entry-modify' => 'modified $1 ($2)', |
| | 455 | + 'abusefilter-log-noresults' => 'No results', |
| 455 | 456 | |
| 456 | 457 | // Diffs |
| 457 | 458 | 'abusefilter-diff-title' => 'Differences between versions', |