From 4ae2b6a83f3ab6aa5b8be9e2a935fc5571757027 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Apr 2008 20:25:58 +0000 Subject: [PATCH] $wgMiserMode for "all" selector --- includes/SpecialNewpages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index ea1d3d854d..f9c99d5b29 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -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' ) . " " . - Xml::namespaceSelector( $options['namespace'], 'all' ) . + Xml::namespaceSelector( $options['namespace'], $wgMiserMode ? null : 'all' ) . " @@ -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; -- 2.20.1