Accept the subpage value (ie: Special:Allmessages/fr) also
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 18 Jul 2009 14:07:28 +0000 (14:07 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 18 Jul 2009 14:07:28 +0000 (14:07 +0000)
includes/specials/SpecialAllmessages.php

index 9055634..ceafa4a 100644 (file)
@@ -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;