Index: trunk/phase3/includes/specials/SpecialPrefixindex.php |
— | — | @@ -54,12 +54,17 @@ |
55 | 55 | : wfMsg( 'prefixindex' ) |
56 | 56 | ); |
57 | 57 | |
| 58 | + $showme = ''; |
58 | 59 | if( isset( $par ) ){ |
59 | | - $this->showPrefixChunk( $namespace, $par, $from ); |
| 60 | + $showme = $par; |
60 | 61 | } elseif( $prefix != '' ){ |
61 | | - $this->showPrefixChunk( $namespace, $prefix, $from ); |
| 62 | + $showme = $prefix; |
62 | 63 | } elseif( $from != '' ){ |
63 | | - $this->showPrefixChunk( $namespace, $from, $from ); |
| 64 | + // For back-compat with Special:Allpages |
| 65 | + $showme = $from; |
| 66 | + } |
| 67 | + if ($showme != '' || $namespace) { |
| 68 | + $this->showPrefixChunk( $namespace, $showme, $from ); |
64 | 69 | } else { |
65 | 70 | $wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) ); |
66 | 71 | } |