}
$this->opts = ContribsPager::processDateFilter( $this->opts );
+ if ( $this->opts['namespace'] < NS_MAIN ) {
+ $this->getOutput()->wrapWikiMsg(
+ "<div class=\"mw-invalid-namespace-assoc error\">\n\$1\n</div>",
+ [
+ 'namespace-not-associated',
+ wfEscapeWikiText( $this->opts['namespace'] ),
+ ] );
+ $out->addHTML( $this->getForm() );
+ return;
+ }
+
$feedType = $request->getVal( 'feed' );
$feedParams = [
''
) . "\u{00A0}" .
Html::namespaceSelector(
- [ 'selected' => $this->opts['namespace'], 'all' => '' ],
+ [ 'selected' => $this->opts['namespace'], 'all' => '', 'in-user-lang' => true ],
[
'name' => 'namespace',
'id' => 'namespace',
$explain = $this->msg( 'sp-contributions-explain' );
if ( !$explain->isBlank() ) {
- $form .= "<p id='mw-sp-contributions-explain'>{$explain->parse()}</p>";
+ $form .= Html::rawElement(
+ 'p', [ 'id' => 'mw-sp-contributions-explain' ], $explain->parse()
+ );
}
$form .= Xml::closeElement( 'form' );