From: Brion Vibber Date: Fri, 7 Jan 2011 23:52:19 +0000 (+0000) Subject: * (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed... X-Git-Tag: 1.31.0-rc.0~32703 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f66c68f676422bd73b5fc932b5b4827002b0a48e;p=lhc%2Fweb%2Fwiklou.git * (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed if namespace was set but no prefix given --- 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 ) ); }