From 693ddefdf2e5c3dcfb1c5c7ecdf245df5b147731 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 18 Jul 2009 14:07:28 +0000 Subject: [PATCH] Accept the subpage value (ie: Special:Allmessages/fr) also --- includes/specials/SpecialAllmessages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php index 9055634e0a..ceafa4a0c1 100644 --- a/includes/specials/SpecialAllmessages.php +++ b/includes/specials/SpecialAllmessages.php @@ -33,8 +33,8 @@ class SpecialAllmessages extends SpecialPage { $this->prefix = $wgRequest->getVal( 'prefix', '' ); $this->table = new AllmessagesTablePager( $this, - $conds=array(), - wfGetLangObj( $wgRequest->getVal( 'lang', false ) ) ); + $conds = array(), + wfGetLangObj( $wgRequest->getVal( 'lang', $par ) ) ); $this->langCode = $this->table->lang->getCode(); @@ -125,7 +125,7 @@ class AllmessagesTablePager extends TablePager { var $messages = NULL; var $talkPages = NULL; - function __construct( $page, $conds, $langObj = NULL ) { + function __construct( $page, $conds, $langObj = null ) { parent::__construct(); $this->mIndexField = 'am_title'; $this->mPage = $page; -- 2.20.1