summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialAllmessages.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/specials/SpecialAllmessages.php')
-rw-r--r--includes/specials/SpecialAllmessages.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php
index 2214b4ab..24815825 100644
--- a/includes/specials/SpecialAllmessages.php
+++ b/includes/specials/SpecialAllmessages.php
@@ -62,9 +62,6 @@ class SpecialAllmessages extends SpecialPage {
$out->addModuleStyles( 'mediawiki.special' );
- $this->filter = $request->getVal( 'filter', 'all' );
- $this->prefix = $request->getVal( 'prefix', '' );
-
$this->table = new AllmessagesTablePager(
$this,
array(),
@@ -118,10 +115,13 @@ class AllmessagesTablePager extends TablePager {
$this->langcode = $this->lang->getCode();
$this->foreign = $this->langcode != $wgContLang->getCode();
- if( $wgRequest->getVal( 'filter', 'all' ) === 'all' ){
+ $request = $wgRequest;
+
+ $this->filter = $request->getVal( 'filter', 'all' );
+ if( $this->filter === 'all' ){
$this->custom = null; // So won't match in either case
} else {
- $this->custom = ($wgRequest->getVal( 'filter' ) == 'unmodified');
+ $this->custom = ($this->filter == 'unmodified');
}
$prefix = $wgLang->ucfirst( $wgRequest->getVal( 'prefix', '' ) );