From: Chad Horohoe Date: Sat, 18 Jul 2009 14:07:28 +0000 (+0000) Subject: Accept the subpage value (ie: Special:Allmessages/fr) also X-Git-Tag: 1.31.0-rc.0~40853 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=693ddefdf2e5c3dcfb1c5c7ecdf245df5b147731;p=lhc%2Fweb%2Fwiklou.git Accept the subpage value (ie: Special:Allmessages/fr) also --- 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;