)->inContentLanguage() );
}
- if ( ( $ns = $request->getVal( 'namespace', null ) ) !== null && $ns !== '' ) {
+ $ns = $request->getVal( 'namespace', null );
+ if ( $ns !== null && $ns !== '' ) {
$this->opts['namespace'] = intval( $ns );
} else {
$this->opts['namespace'] = '';
'month',
'topOnly',
'newOnly',
- 'associated'
+ 'associated',
+ 'tagfilter'
);
foreach ( $this->opts as $name => $value ) {
$filterSelection = Html::rawElement(
'td',
array(),
- array_shift( $tagFilter ) . implode( ' ', $tagFilter )
+ implode( ' ', $tagFilter )
);
} else {
$filterSelection = Html::rawElement( 'td', array( 'colspan' => 2 ), '' );
'mw-ui-input-inline',
'mw-autocomplete-user', // used by mediawiki.userSuggest
),
- ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) )
+ ) + (
+ // Only autofocus if target hasn't been specified or in non-newbies mode
+ ( $this->opts['contribs'] === 'newbie' || $this->opts['target'] )
+ ? array() : array( 'autofocus' => true )
+ )
);
+
$targetSelection = Html::rawElement(
'td',
array( 'colspan' => 2 ),
) . ' ' .
Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'nsInvert',
)
) . ' '
) .
- Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ),
+ Html::rawElement( 'span', array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
$deletedOnlyCheck = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'history-show-deleted' )->text(),
'deletedOnly',
$checkLabelTopOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-toponly' )->text(),
'topOnly',
);
$checkLabelNewOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-newonly' )->text(),
'newOnly',