From 63c74c6a648ae8e0d0f322f0c9c77ad7f5c5acae Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Fri, 13 May 2011 23:31:06 +0000 Subject: [PATCH] * removed unused messages because of previous revert. * hidden namespace select box if in wgMiserMode(requested by domas) --- includes/specials/SpecialContributions.php | 13 ++++++++----- languages/messages/MessagesEn.php | 2 -- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index e390945706..39e84a3766 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -317,7 +317,7 @@ class SpecialContributions extends SpecialPage { * @return String: HTML fragment */ protected function getForm() { - global $wgScript; + global $wgScript, $wgMiserMode; $this->opts['title'] = $this->getTitle()->getPrefixedText(); if( !isset( $this->opts['target'] ) ) { @@ -367,6 +367,12 @@ class SpecialContributions extends SpecialPage { $tagFilter = ChangeTags::buildTagFilterSelector( $this->opts['tagFilter'] ); + $fNS = ( $wgMiserMode ) ? '' : + Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ), + Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . + Xml::namespaceSelector( $this->opts['namespace'], '' ) + ); + $f .= Xml::fieldset( wfMsg( 'sp-contributions-search' ) ) . Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parsemag' ) ), 'contribs', 'newbie' , 'newbie', $this->opts['contribs'] == 'newbie' ) . '
' . @@ -376,10 +382,7 @@ class SpecialContributions extends SpecialPage { 'size' => '20', 'required' => '' ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) ) ) . ' '. - Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ), - Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . - Xml::namespaceSelector( $this->opts['namespace'], '' ) - ) . + $fNS. Xml::checkLabel( wfMsg( 'history-show-deleted' ), 'deletedOnly', 'mw-show-deleted-only', $this->opts['deletedOnly'] ) . '
' . Xml::tags( 'p', null, Xml::checkLabel( wfMsg( 'sp-contributions-toponly' ), diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 827c02dab9..785359998f 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2992,8 +2992,6 @@ The latest block log entry is provided below for reference:', 'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it 'sp-contributions-footer' => '-', # do not translate or duplicate this message to other languages 'sp-contributions-footer-anon' => '-', # do not translate or duplicate this message to other languages -'sp-contributions-filtered' => 'contributions page filtered for namespace or RevisionDeleted edits', -'sp-contributions-unfiltered' => 'contributions page unfiltered', # What links here 'whatlinkshere' => 'What links here', -- 2.20.1