From 903cd76bd8cc9f38988389bbee85ba41816571d6 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 22 Mar 2009 03:12:53 +0000 Subject: [PATCH] Fix output for examine interface in cases where no edits are available --- AbuseFilter.i18n.php | 1 + Views/AbuseFilterViewExamine.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AbuseFilter.i18n.php b/AbuseFilter.i18n.php index d314083b3..5d5d82e47 100644 --- a/AbuseFilter.i18n.php +++ b/AbuseFilter.i18n.php @@ -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'''", diff --git a/Views/AbuseFilterViewExamine.php b/Views/AbuseFilterViewExamine.php index 9c1ccec95..55ed9daf7 100644 --- a/Views/AbuseFilterViewExamine.php +++ b/Views/AbuseFilterViewExamine.php @@ -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' ); + } } \ No newline at end of file