$wgMiserMode for "all" selector
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 13 Apr 2008 20:25:58 +0000 (20:25 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 13 Apr 2008 20:25:58 +0000 (20:25 +0000)
includes/SpecialNewpages.php

index ea1d3d8..f9c99d5 100644 (file)
@@ -100,6 +100,7 @@ class NewPagesForm {
                }
                $hidden = implode( "\n", $hidden );
 
+               global $wgMiserMode;
                $form = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) .
                        Xml::hidden( 'title', $self->getPrefixedDBkey() ) .
                        Xml::openElement( 'fieldset' ) .
@@ -110,7 +111,7 @@ class NewPagesForm {
                                        Xml::label( wfMsg( 'namespace' ), 'namespace' ) .
                                "</td>
                                <td>" .
-                                       Xml::namespaceSelector( $options['namespace'], 'all' ) .
+                                       Xml::namespaceSelector( $options['namespace'], $wgMiserMode ? null : 'all' ) .
                                "</td>
                        </tr>
                        <tr>
@@ -291,7 +292,8 @@ class NewPagesPager extends ReverseChronologicalPager {
                $this->mForm = $form;
                $this->mConds = $conds;
                
-               $this->namespace = ($namespace === "all") ? false : intval($namespace);
+               global $wgMiserMode;
+               $this->namespace = (!$wgMiserMode && $namespace === "all") ? false : intval($namespace);
                $this->user = $user;
                
                $this->hideliu = (bool)$hliu;