r53442 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53441‎ | r53442 | r53443 >
Date:14:07, 18 July 2009
Author:demon
Status:ok
Tags:
Comment:
Accept the subpage value (ie: Special:Allmessages/fr) also
Modified paths:
  • /trunk/phase3/includes/specials/SpecialAllmessages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialAllmessages.php
@@ -33,8 +33,8 @@
3434 $this->prefix = $wgRequest->getVal( 'prefix', '' );
3535
3636 $this->table = new AllmessagesTablePager( $this,
37 - $conds=array(),
38 - wfGetLangObj( $wgRequest->getVal( 'lang', false ) ) );
 37+ $conds = array(),
 38+ wfGetLangObj( $wgRequest->getVal( 'lang', $par ) ) );
3939
4040 $this->langCode = $this->table->lang->getCode();
4141
@@ -125,7 +125,7 @@
126126 var $messages = NULL;
127127 var $talkPages = NULL;
128128
129 - function __construct( $page, $conds, $langObj = NULL ) {
 129+ function __construct( $page, $conds, $langObj = null ) {
130130 parent::__construct();
131131 $this->mIndexField = 'am_title';
132132 $this->mPage = $page;

Status & tagging log