* (bug 26625) fix regression in Special:PrefixIndex from r75314; pages weren't listed...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Jan 2011 23:52:19 +0000 (23:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 7 Jan 2011 23:52:19 +0000 (23:52 +0000)
includes/specials/SpecialPrefixindex.php

index 47aed80..09e7734 100644 (file)
@@ -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 ) );
                }