From f66c68f676422bd73b5fc932b5b4827002b0a48e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 7 Jan 2011 23:52:19 +0000 Subject: [PATCH] * (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed if namespace was set but no prefix given --- includes/specials/SpecialPrefixindex.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index 47aed804cf..09e7734c2e 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -54,12 +54,17 @@ class SpecialPrefixindex extends SpecialAllpages { : wfMsg( 'prefixindex' ) ); + $showme = ''; if( isset( $par ) ){ - $this->showPrefixChunk( $namespace, $par, $from ); + $showme = $par; } elseif( $prefix != '' ){ - $this->showPrefixChunk( $namespace, $prefix, $from ); + $showme = $prefix; } elseif( $from != '' ){ - $this->showPrefixChunk( $namespace, $from, $from ); + // For back-compat with Special:Allpages + $showme = $from; + } + if ($showme != '' || $namespace) { + $this->showPrefixChunk( $namespace, $showme, $from ); } else { $wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) ); } -- 2.20.1