Fix output for examine interface in cases where no edits are available

This commit is contained in:
Andrew Garrett 2009-03-22 03:12:53 +00:00
parent 23ba2cb968
commit 903cd76bd8
2 changed files with 8 additions and 1 deletions

View file

@ -383,6 +383,7 @@ You can receive a full explanation by clicking the "Check Syntax" button.',
'abusefilter-examine-syntaxerror' => 'The filter has invalid syntax',
'abusefilter-examine-notfound' => 'The change you requested could not be found.',
'abusefilter-examine-incompatible' => 'The change you requested is not supported by the Abuse Filter',
'abusefilter-examine-noresults' => 'No results were found for the search parameters you provided.',
// Top navigation interface
'abusefilter-topnav' => "'''Abuse Filter navigation'''",

View file

@ -67,7 +67,9 @@ class AbuseFilterViewExamine extends AbuseFilterView {
$pager = new AbuseFilterExaminePager( $this, $changesList );
$output .= $pager->getNavigationBar() . $pager->getBody() . $pager->getNavigationBar();
$output .= $pager->getNavigationBar() .
$pager->getBody() .
$pager->getNavigationBar();
$output .= $changesList->endRecentChangesList();
@ -249,4 +251,8 @@ class AbuseFilterExaminePager extends ReverseChronologicalPager {
function getTitle() {
return $this->mPage->getTitle( 'examine' );
}
function getEmptyBody() {
return wfMsgExt( 'abusefilter-examine-noresults', 'parse' );
}
}