* removed unused messages because of previous revert.
authorJure Kajzer <freakolowsky@users.mediawiki.org>
Fri, 13 May 2011 23:31:06 +0000 (23:31 +0000)
committerJure Kajzer <freakolowsky@users.mediawiki.org>
Fri, 13 May 2011 23:31:06 +0000 (23:31 +0000)
* hidden namespace select box if in wgMiserMode(requested by domas)

includes/specials/SpecialContributions.php
languages/messages/MessagesEn.php

index e390945..39e84a3 100644 (file)
@@ -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' ) . '<br />' .
@@ -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'] ) . '<br />' .
                        Xml::tags( 'p', null, Xml::checkLabel( wfMsg( 'sp-contributions-toponly' ),
index 827c02d..7853599 100644 (file)
@@ -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',